mirror of
https://github.com/versity/versitygw.git
synced 2026-07-19 14:32:20 +00:00
50e64f7e78
Add missing return statements after error checks in sendLog. When json.Marshal or http.NewRequest fails, the error is logged but execution continues. If http.NewRequest returns a nil *Request, the subsequent req.Header.Set call panics with a nil pointer dereference. This bug was introduced in PR #129 (2023-07-14) and has been present for nearly 3 years. Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>