add missing request-id from DeleteObject events (#10623)

fixes #10621
This commit is contained in:
Harshavardhana
2020-10-02 13:36:13 -07:00
committed by GitHub
parent d1ed1da8c6
commit 8e7c00f3d4
4 changed files with 43 additions and 17 deletions

View File

@@ -238,7 +238,9 @@ func extractReqParams(r *http.Request) map[string]string {
// Extract response elements to be sent with event notifiation.
func extractRespElements(w http.ResponseWriter) map[string]string {
if w == nil {
return map[string]string{}
}
return map[string]string{
"requestId": w.Header().Get(xhttp.AmzRequestID),
"content-length": w.Header().Get(xhttp.ContentLength),