support lowercase response content-type
See original GitHub issuehttps://github.com/vuejs/vue-resource/blob/master/src/http/interceptor/body.js#L25
next((response) => {
var contentType = response.headers['Content-Type'];
if (isString(contentType) && contentType.indexOf('application/json') === 0) {
Issue Analytics
- State:
- Created 7 years ago
- Reactions:5
- Comments:23
Top Results From Across the Web
How to fix: Content-Type value is converted to lowercase
I tried to set the content-type with res.set('Content-Type', 'UPPERCASE-CONTENT-TYPE'); and also with res.setHeader('Content-Type', 'UPPERCASE ...
Read more >61621 – Content-Type is forced to lowercase when it goes ...
Running our proxied request via mod_jk we are seeing the returned content-type being changing to all lowercase: eg: Content-Type: ...
Read more >CL_HTTP_CLIENT Header auto conver to lowercase Error ...
Hi Guys, Kinda stuck here, I set header field using cl http_client. CALL METHOD lo_http_client->request->set_header_field. EXPORTING
Read more >HTTP client request headers (lowercase) issue - Google Groups
I'm writing the head as follows: response.writeHead (200, {"Content-Type": "text/html", "Access-Control- ...
Read more >Request id header sometimes in lowercases - General
This is a response with the unexpected x-request-id in lowercase coming ... 30 Jul 2021 18:20:02 GMT Content-Type: text/plain; charset=utf-8 ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
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
Since HTTP header field names are case-insensitive, maybe it would be best to lowercase all the keys of Response.headers object? If this breaks for anyone, then their code is non-standard.
It’s already been fixed in the
develop
branch with this committhe next release will solve this.