瀏覽代碼

Disable file preview page

kiska-2021
JustAnotherArchivist 3 年之前
父節點
當前提交
ab7a007ed2
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. +1
    -0
      server/server.go

+ 1
- 0
server/server.go 查看文件

@@ -407,6 +407,7 @@ func (s *Server) Run() {
r.HandleFunc("/{action:(?:download|get|inline)}/{token}/{filename}", s.headHandler).Methods("HEAD")

r.HandleFunc("/{token}/{filename}", s.previewHandler).MatcherFunc(func(r *http.Request, rm *mux.RouteMatch) (match bool) {
return false
match = false

// The file will show a preview page when opening the link in browser directly or


Loading…
取消
儲存