fix: don't return 404 if the prefix doesn't exist

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
This commit is contained in:
Henrique Dias 2019-05-12 09:04:09 +01:00
parent df5fc427ef
commit 72e74d421c
2 changed files with 21 additions and 1 deletions

View file

@ -60,5 +60,5 @@ func NewHandler(storage *storage.Storage, server *settings.Server) (http.Handler
public.PathPrefix("/dl").Handler(monkey(publicDlHandler, "/api/public/dl/")).Methods("GET")
public.PathPrefix("/share").Handler(monkey(publicShareHandler, "/api/public/share/")).Methods("GET")
return http.StripPrefix(server.BaseURL, r), nil
return stripPrefix(server.BaseURL, r), nil
}