minio/cmd/logger
Andreas Auernhammer ed6d2a100f
logger: avoid writing audit log response header twice (#10642)
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
2020-10-08 09:29:10 -07:00
..
message Copy metadata before spawning goroutine + prealloc maps (#10458) 2020-09-10 11:37:22 -07:00
target fix: optimize ServerInfo() handler to avoid reading config (#10626) 2020-10-02 16:19:44 -07:00
audit.go logger: avoid writing audit log response header twice (#10642) 2020-10-08 09:29:10 -07:00
config.go Ignore config values from unknown subsystems (#10432) 2020-09-08 08:57:04 -07:00
console.go Fix Windows console printing (#8805) 2020-01-13 13:05:51 -08:00
help.go Update help messages with new wording (#8616) 2019-12-06 13:53:51 -08:00
legacy.go config: More fixes in parsing Audit & Logger env variables (#9474) 2020-04-28 15:20:40 -07:00
logger.go Copy metadata before spawning goroutine + prealloc maps (#10458) 2020-09-10 11:37:22 -07:00
logonce.go Allow logging targets to be configured to receive `minio` (#8347) 2019-10-11 18:50:54 -07:00
reqinfo.go Add node address information to logs (#7941) 2019-07-18 09:58:37 -07:00
targets.go fix: optimize ServerInfo() handler to avoid reading config (#10626) 2020-10-02 16:19:44 -07:00
utils.go Fix Windows console printing (#8805) 2020-01-13 13:05:51 -08:00