Fix multiple response.WriteHeader calls

Signed-off-by: Emile Vauge <emile@vauge.com>
This commit is contained in:
Emile Vauge 2016-04-06 14:30:29 +02:00
parent e36433c23a
commit 4d2c85ffdc
No known key found for this signature in database
GPG key ID: D808B4C167352E59

View file

@ -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)