So there really is no way to make Node.js add and send HTTP header names in their mixed case form, as God intended them to be sent?

Apr 19, 2014 · 9:37 PM UTC

4
1
Replying to @stilkov
@stilkov Can you be more specific with what you've tried? Sending mixed-case HTTP headers works fine.
1
@hichaelmart For purely aesthetic reasons, I’m unhappy with “content-type” and can’t make Node/Express send Content-type instead
1
Replying to @stilkov
@stilkov any matching ought to be case-insensitive, does it have an impact? <curious>
1
@serialseb No, no actual impact, just a matter of taste.
1
Replying to @stilkov
@stilkov Just checked, both res.setHeader("cOnteNt-tYpe",...) & res.writeHead(200, {"cOnteNt-tYpe": ...}) work for me (plain vanilla node)
1