We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f6f9d2 commit 8564c1cCopy full SHA for 8564c1c
core/response.go
@@ -59,7 +59,7 @@ func (r *ProxyResponseWriter) Header() http.Header {
59
// was set before with the WriteHeader method it sets the status
60
// for the response to 200 OK.
61
func (r *ProxyResponseWriter) Write(body []byte) (int, error) {
62
- if r.status == -1 {
+ if r.status == defaultStatusCode {
63
r.status = http.StatusOK
64
}
65
0 commit comments