I am using AWS Cloudfront and API gateway for a file upload API. I have deployed same code to two different but identical environments. Both the environments are built by the same cloudformation script. We are having a weird issue
When we are uploading file in environment A, we are getting following request
"headers": {
"content-type": "multipart/form-data; boundary=----WebKitFormBoundarygPe3hR4e1dTzLdBt",
However in environment B I am getting following
"headers": {
"Content-Type": "multipart/form-data; boundary=----WebKitFormBoundarygPe3hR4e1dTzLdBt",
The difference is Content-Type. In Environment A, I am getting Content-Type in lower case. Not sure why. This behavior is consistent across all browsers.