Cannot override content-type?
See original GitHub issueDoing this:
axios({
method: 'post',
url: '/some/url',
data: { prop: value },
headers: {
'content-type': 'application/vnd.myapp.type+json'
}
});
…causes a request with content-type
set to application/json;charset=UTF-8 application/vnd.peregrine.activation+json
.
Is there a correct way to override content-type
, or is this just a bug?
Issue Analytics
- State:
- Created 8 years ago
- Reactions:2
- Comments:14 (1 by maintainers)
Top Results From Across the Web
Can't override content-type PHP server headers - Stack Overflow
Show activity on this post. I can set other headers with ease, but as SOON as I try to set a header with...
Read more >I am unable to overwrite the Content-Type - Just getting started
My question: I try to overwrite the automatically generated content-type by application/json but I am not able to fix that.
Read more >Impossible to override Content-Type header? - Google Groups
override the Content-Type header if it already exists. ... I think the problem is that you can't modify the header once it's already...
Read more >How to add Content-Type for income request by conditions ...
I have a scenario that adding 'application/json' as default Content-Type for incoming request if cannot find Content-Type from request in MPGW, ...
Read more >Can't change content-type in REST response
Can't change content-type in REST response ⏩ Post By ✓ James Westley-Farrell ✓ Intersystems Developer Community CSP ▶️ REST API ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I am facing the same issue but only with
GET
RequestsEDIT : According to #86 I added empty data object and luckily it worked.
it still doesn’t work… why did it closed?