ladjs / supertest

🕷 Super-agent driven library for testing node.js HTTP servers using a fluent API. Maintained for @forwardemail, @ladjs, @spamscanner, @breejs, @cabinjs, and @lassjs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HTTP headers are not case-sensitive

dbergami opened this issue · comments

supertest.get('test').set('Cache-Control', 'xablau' )
comes as

headers: {
'cache-control: xablau'
}

headers are always converted to lowercase

how can i keep it exactly as it was set

commented

This seems to be an old issue, #350 #796, not sure why it's still happening (it's happening for me as well)