aacerox / node-rest-client

REST API client from node.js
MIT License
377 stars 132 forks source link

Content-Type header is case sensitive #209

Open shazil-arif opened 4 years ago

shazil-arif commented 4 years ago

If the 'Content-Type' header is not set exactly, nrc-parser-manager throws a JSON parse error. For example, setting the header as 'Content-type' throws an error

According to https://www.w3.org/Protocols/rfc1341/4_Content-Type.html#z0 the Content-Type header should not be case sensitive so this should be considered.