Skip to content

Commit 6ecee30

Browse files
committed
Adding 'Content-Type' to request regardless which value it holds
1 parent 778c7b1 commit 6ecee30

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

aws-es-proxy.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,9 +262,7 @@ func addHeaders(src, dest http.Header) {
262262
}
263263

264264
if val, ok := src["Content-Type"]; ok {
265-
if val[0] == "application/json" {
266-
dest.Add("Content-Type", "application/json")
267-
}
265+
dest.Add("Content-Type", val[0])
268266
}
269267
}
270268

0 commit comments

Comments
 (0)