Skip to content

Commit

Permalink
Adding 'Content-Type' to request regardless which value it holds
Browse files Browse the repository at this point in the history
  • Loading branch information
abutaha committed Dec 11, 2017
1 parent 778c7b1 commit 6ecee30
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions aws-es-proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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])
}
}

Expand Down

0 comments on commit 6ecee30

Please sign in to comment.