Skip to content

Commit 8564c1c

Browse files
Replacing -1 with defaultStatusCode (awslabs#51)
`defaultStatusCode` is used elsewhere in place of `-1`. Looks like one value in the `Write` method was missed. This cleans that up.
1 parent 9f6f9d2 commit 8564c1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/response.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func (r *ProxyResponseWriter) Header() http.Header {
5959
// was set before with the WriteHeader method it sets the status
6060
// for the response to 200 OK.
6161
func (r *ProxyResponseWriter) Write(body []byte) (int, error) {
62-
if r.status == -1 {
62+
if r.status == defaultStatusCode {
6363
r.status = http.StatusOK
6464
}
6565

0 commit comments

Comments
 (0)