mirror of
https://github.com/TecharoHQ/anubis.git
synced 2026-04-16 13:24:57 +00:00
fix(lib): try to make base path prefixing work again
Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
@@ -200,7 +200,7 @@ func (s *Server) respondWithStatus(w http.ResponseWriter, r *http.Request, msg s
|
||||
}
|
||||
|
||||
func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
switch strings.HasPrefix(r.URL.Path, anubis.StaticPath) {
|
||||
switch strings.HasPrefix(r.URL.Path, s.internalPath) {
|
||||
case true:
|
||||
s.mux.ServeHTTP(w, r)
|
||||
case false:
|
||||
|
||||
Reference in New Issue
Block a user