From a44149290df356196204a0fd6fa4dcbad2bbda2f Mon Sep 17 00:00:00 2001 From: kiska Date: Sun, 7 Feb 2021 15:17:45 +0000 Subject: [PATCH] Update 'server/server.go' Committing 2 lines for transfer.notkiska.pw functionality --- server/server.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/server.go b/server/server.go index bff1ee9..032f2dc 100644 --- a/server/server.go +++ b/server/server.go @@ -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