Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b7babdd

Browse files
authoredJan 22, 2022
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

+3
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)
Please sign in to comment.