Ensure the instrumentedResponseWriter correctly sets the http
status in the context. Signed-off-by: Richard Scothern <richard.scothern@gmail.com>
This commit is contained in:
@@ -322,9 +322,7 @@ func (irw *instrumentedResponseWriter) Value(key interface{}) interface{} {
|
||||
case "written":
|
||||
return irw.written
|
||||
case "status":
|
||||
if irw.status != 0 {
|
||||
return irw.status
|
||||
}
|
||||
return irw.status
|
||||
case "contenttype":
|
||||
contentType := irw.Header().Get("Content-Type")
|
||||
if contentType != "" {
|
||||
|
Reference in New Issue
Block a user