Skip to content

Commit

Permalink
interceptor was a status code OK by default (#27)
Browse files Browse the repository at this point in the history
instabledesign authored Dec 2, 2019
1 parent 65ae64e commit 7e3da1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middleware/response_writer_interceptor.go
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ func (w *ResponseWriterInterceptor) Write(p []byte) (int, error) {

func NewResponseWriterInterceptor(writer http.ResponseWriter) *ResponseWriterInterceptor {
return &ResponseWriterInterceptor{
StatusCode: http.StatusServiceUnavailable,
StatusCode: http.StatusOK,
ResponseWriter: writer,
}
}

0 comments on commit 7e3da1f

Please sign in to comment.