Got: Unexpected lowercasing of headers

Created on 21 Oct 2016  路  4Comments  路  Source: sindresorhus/got

Lowercasing of headers is rather unexpected.
I have to communicate with some services that seem to be strict about casing of headers and sending headers lowercased does not give back the expected response. Took me some time to figure out that got lowercases headers.

I see that it is easier to merge options this way but it would be nice to respect casing .

Related #50

All 4 comments

As I already commented in #50, headers are case-insensitive.

Some services do not respect rfc and misbehave as pointed out here.
Would it be possible to remove the default headers safely?

got is made for compliant servers. Sounds like request would be a better choice for you :)

Thanks for taking your time. Really like the simplicity of got.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

erfanium picture erfanium  路  3Comments

alanzhaonys picture alanzhaonys  路  4Comments

lukehorvat picture lukehorvat  路  3Comments

alexandrino picture alexandrino  路  4Comments

astoilkov picture astoilkov  路  3Comments