mirror of
https://github.com/kemko/reproxy.git
synced 2026-01-08 03:05:57 +03:00
revendor with fixed rest lib
This commit is contained in:
4
vendor/github.com/go-pkgz/rest/file_server.go
generated
vendored
4
vendor/github.com/go-pkgz/rest/file_server.go
generated
vendored
@@ -155,7 +155,9 @@ type respWriter404 struct {
|
||||
|
||||
func (w *respWriter404) WriteHeader(status int) {
|
||||
w.status = status
|
||||
w.Header().Set("Content-Type", "text/html; charset=utf-8")
|
||||
if status == http.StatusNotFound {
|
||||
w.Header().Set("Content-Type", "text/html; charset=utf-8")
|
||||
}
|
||||
w.ResponseWriter.WriteHeader(status)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user