mirror of https://github.com/minio/minio.git
ed6d2a100f
This commit fixes a misuse of the `http.ResponseWriter.WriteHeader`. A caller should **either** call `WriteHeader` exactly once **or** write to the response writer and causing an implicit 200 OK. Writing the response headers more than once causes a `http: superfluous response.WriteHeader call` log message. This commit fixes this by preventing a 2nd `WriteHeader` call being forwarded to the underlying `ResponseWriter`. Updates #10587 |
||
---|---|---|
.. | ||
message | ||
target | ||
audit.go | ||
config.go | ||
console.go | ||
help.go | ||
legacy.go | ||
logger.go | ||
logonce.go | ||
reqinfo.go | ||
targets.go | ||
utils.go |