question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

support lowercase response content-type

See original GitHub issue

https://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:closed
  • Created 7 years ago
  • Reactions:5
  • Comments:23

github_iconTop GitHub Comments

5reactions
decademooncommented, Jul 11, 2016

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.

2reactions
LinusBorgcommented, Aug 17, 2016

It’s already been fixed in the develop branch with this commit

the next release will solve this.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found