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?
4
1
@stilkov Can you be more specific with what you've tried? Sending mixed-case HTTP headers works fine.
1
Replying to @hichaelmart
@hichaelmart For purely aesthetic reasons, I’m unhappy with “content-type” and can’t make Node/Express send Content-type instead

Apr 20, 2014 · 6:50 AM UTC

1
Replying to @stilkov
@stilkov Not sure why you tweeted about Node though, `res.setHeader('Content-type', 'text/html')` works fine and outputs exactly as is.
1
@hichaelmart maybe it’s something in Express. I’ll investigate.