Jai-HTTP-Server icon indicating copy to clipboard operation
Jai-HTTP-Server copied to clipboard

switch to case-insensitive http header comparisons, also fix racing in linux.jai

Open DaseinPhaos opened this issue 6 months ago • 1 comments

Thanks for the awesome package!

This PR fixes a tiny issue wrt http header comparisons. According to the mdn reference:

An HTTP header consists of its case-insensitive name followed by a colon...

But the previous parsing code used hard-coded literals when parsing specific headers, resulting in some requests not being correctly parsed. This PR fixes that.

DaseinPhaos avatar Aug 09 '24 13:08 DaseinPhaos