Explorar el Código

Update 'server/server.go'

Committing 2 lines for transfer.notkiska.pw functionality
master
kiska hace 3 años
padre
commit
a44149290d
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. +3
    -1
      server/server.go

+ 3
- 1
server/server.go Ver fichero

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


Cargando…
Cancelar
Guardar