fix: stripPrefix and stripPrefixRegex.
This commit is contained in:
parent
770b3739e0
commit
f843f260ee
6 changed files with 55 additions and 52 deletions
|
@ -49,7 +49,7 @@ func (s *stripPrefix) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
|
|||
return
|
||||
}
|
||||
}
|
||||
http.NotFound(rw, req)
|
||||
s.next.ServeHTTP(rw, req)
|
||||
}
|
||||
|
||||
func (s *stripPrefix) serveRequest(rw http.ResponseWriter, req *http.Request, prefix string) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue