mirror of
https://github.com/minio/minio.git
synced 2025-01-24 13:13:16 -05:00
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