-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Description
if we look at https://github.com/thoas/stats/blob/master/recorder.go#L39 and take following scenario:
func (r *recorderResponseWriter) WriteHeader(code int) {
r.written = true
r.ResponseWriter.WriteHeader(code)
r.status = code
}
- We write header 200. :: r.status=200, r.ResponseWriter.status=200
- We write header 200. :: r.status=300, r.ResponseWriter.status=200
in step 2 internal response writer ignores new status code.
ref:
if I understood the issue correctly and if it really is a genuine issue, happy to make a PR
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels