Fix multiple response.WriteHeader calls
Signed-off-by: Emile Vauge <emile@vauge.com>
This commit is contained in:
parent
e36433c23a
commit
4d2c85ffdc
1 changed files with 1 additions and 0 deletions
|
@ -17,6 +17,7 @@ func (s *StripPrefix) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
|||
r.URL.Path = p
|
||||
r.RequestURI = r.URL.RequestURI()
|
||||
s.Handler.ServeHTTP(w, r)
|
||||
return
|
||||
}
|
||||
}
|
||||
http.NotFound(w, r)
|
||||
|
|
Loading…
Reference in a new issue