소스 검색

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


불러오는 중...
취소
저장