Skip to content
This repository was archived by the owner on Dec 1, 2023. It is now read-only.

Content-Type or content-type ? #410

Closed
orangemi opened this issue Sep 19, 2016 · 5 comments
Closed

Content-Type or content-type ? #410

orangemi opened this issue Sep 19, 2016 · 5 comments

Comments

@orangemi
Copy link

https://github.com/vuejs/vue-resource/blob/master/dist/vue-resource.js#L865

Google return response headers in lower case content-type
Github return response headers which capitalize first letter Content-Type

I think both correct.
according to nodejs and w3, lower case is correct.

@nblackburn
Copy link

nblackburn commented Sep 19, 2016

Shouldn't matter, they are case insensitive but technically it's Content-Type.

@LinusBorg
Copy link

Shouldn't matter, they are case insensitive

... since v1.0.0

but technically it's Content-Type.

RFC states that they should be lower-case, but most don't respect that.

@nblackburn
Copy link

nblackburn commented Sep 19, 2016

... since v1.0.0

I was referring to the RFC specification.

RFC states that they should be lower-case, but most don't respect that.

I was going off what seems to be the common usage as i havn't seen a document outlining that (apparently i am not the only one if you correctly point out they are all wrong).

@LinusBorg
Copy link

LinusBorg commented Sep 19, 2016

RFC states that they should be lower-case,

I just re-read the RFC, and I was obviously wrong. Case-insensitive is correct.

@orangemi
Copy link
Author

OK and checked since 1.0.0 fixed this problem.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants