From 6ecee30b17963d5970651e8aafb5217fd638f019 Mon Sep 17 00:00:00 2001 From: Muslim AbuTaha Date: Mon, 11 Dec 2017 20:32:00 +0200 Subject: [PATCH] Adding 'Content-Type' to request regardless which value it holds --- aws-es-proxy.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/aws-es-proxy.go b/aws-es-proxy.go index 00145b37..dc4f884e 100644 --- a/aws-es-proxy.go +++ b/aws-es-proxy.go @@ -262,9 +262,7 @@ func addHeaders(src, dest http.Header) { } if val, ok := src["Content-Type"]; ok { - if val[0] == "application/json" { - dest.Add("Content-Type", "application/json") - } + dest.Add("Content-Type", val[0]) } }