Skip to content

Commit b7babdd

Browse files
authored
Merge branch 'main' into disable-content-sniffing
2 parents 17baded + 5ff899d commit b7babdd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/web/wrap_convert.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ func convertHandler(handler interface{}) wrappedHandlerFunc {
9393
}
9494
routing.UpdateFuncInfo(req.Context(), funcInfo)
9595
t(next).ServeHTTP(resp, req)
96+
if r, ok := resp.(context.ResponseWriter); ok && r.Status() > 0 {
97+
done = true
98+
}
9699
return
97100
}
98101
default:

0 commit comments

Comments
 (0)