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.
I have just found the same issue.
With a REST Private API: "Content-Type" With a REST Public API: "content-type"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With