fix: fix static assets url generation (#965)

This commit is contained in:
Oleg Lobanov committed 2020-05-31 22:26:10 +02:00
1 parent 6e5405eeed
commit ba47e3b2fe
5 files changed
+13 -13

No files matched your search

+1 -1
View File
@@ -43,7 +43,7 @@ func errToStatus(err error) int {
// This is an addaptation if http.StripPrefix in which we don't
// return 404 if the page doesn't have the needed prefix.
func stripPrefix(prefix string, h http.Handler) http.Handler {
if prefix == "" {
if prefix == "" || prefix == "/" {
return h
}