supertest icon indicating copy to clipboard operation
supertest copied to clipboard

HTTP headers are not case-sensitive

Open dbergami opened this issue 3 years ago • 2 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

dbergami avatar Oct 05 '22 17:10 dbergami

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

JonoAugustine avatar Jun 03 '23 12:06 JonoAugustine