Skip to content
#

request

Here are 1,413 public repositories matching this topic...

brighttank
brighttank commented Aug 9, 2021

For some reason Amazon REST api's require the content-type to be set to "application/x-amz-json-1.1" instead of the standard "application/json"

Currently the content-type header is set automatically for json data overriding any headers passed in to the request.

It would be useful to first check if the header is set before overriding it:

if (!this.request.headers.set('content-type')) {
axios-module

Improve this page

Add a description, image, and links to the request topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the request topic, visit your repo's landing page and select "manage topics."

Learn more