fix: same as previousc commit

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
This commit is contained in:
Henrique Dias 2019-01-09 07:52:13 +00:00
parent 8df0715064
commit 55e7d335ab

View File

@ -64,9 +64,5 @@ func handle(fn handleFunc, prefix string, storage *storage.Storage, server *sett
} }
}) })
if prefix == "" {
return handler
}
return http.StripPrefix(prefix, handler) return http.StripPrefix(prefix, handler)
} }