mirror of
https://github.com/denoland/deno.git
synced 2024-10-30 09:08:00 -04:00
0cd05d7377
This PR fixes invalid header parsing which is flaky because `g` flag is being used in the regex, which keeps track of `lastIndex` ```javascript try { new Headers([["x", "\u0000x"]]); // error } catch(e) {} new Headers([["x", "\u0000x"]]); // no error ``` This issue affects `Response` & `Request` constructors as well |
||
---|---|---|
.. | ||
integration | ||
testdata | ||
unit | ||
integration_tests.rs |