Pārlūkot izejas kodu

Disable file preview page

kiska-2021
JustAnotherArchivist pirms 3 gadiem
vecāks
revīzija
ab7a007ed2
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. +1
    -0
      server/server.go

+ 1
- 0
server/server.go Parādīt failu

@@ -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


Notiek ielāde…
Atcelt
Saglabāt