fix: same as previousc commit
License: MIT Signed-off-by: Henrique Dias <hacdias@gmail.com>
This commit is contained in:
parent
8df0715064
commit
55e7d335ab
@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user