Browse Source

Update 'server/server.go'

Committing 2 lines for transfer.notkiska.pw functionality
master
kiska 3 years ago
parent
commit
a44149290d
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      server/server.go

+ 3
- 1
server/server.go View File

@@ -407,7 +407,9 @@ 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) {
match = false
//match = false
return false
match = false

// The file will show a preview page when opening the link in browser directly or
// from external link. If the referer url path and current path are the same it will be


Loading…
Cancel
Save