From 8df0715064e1fb5efd047f29aabee3cd03082fa2 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Wed, 9 Jan 2019 07:50:59 +0000 Subject: [PATCH] fix: optimization already done by the underlying code License: MIT Signed-off-by: Henrique Dias --- http/http.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/http/http.go b/http/http.go index 0ec1b228..6afda7d4 100644 --- a/http/http.go +++ b/http/http.go @@ -59,9 +59,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") - if server.BaseURL == "" { - return r, nil - } - return http.StripPrefix(server.BaseURL, r), nil }