deno/ext/fetch
Marcos Casagrande 0cd05d7377
fix(ext/fetch): fix illegal header regex (#16236)
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
2022-10-10 12:06:50 -04:00
..
01_fetch_util.js
20_headers.js fix(ext/fetch): fix illegal header regex (#16236) 2022-10-10 12:06:50 -04:00
21_formdata.js fix(ext/fetch): support empty formdata (#16165) 2022-10-07 13:59:30 +02:00
22_body.js fix(ext/fetch): reject immediately on aborted signal (#16190) 2022-10-08 16:08:47 -04:00
22_http_client.js
23_request.js refactor(ext/fetch): avoid extra headers copy in .clone (#16130) 2022-10-03 13:34:13 +02:00
23_response.js refactor(ext/fetch): avoid extra headers copy in .clone (#16130) 2022-10-03 13:34:13 +02:00
26_fetch.js feat(core): add Deno.core.writeAll(rid, chunk) (#16228) 2022-10-10 10:28:35 +02:00
Cargo.toml chore: forward v1.26.1 release commit to main (#16178) 2022-10-06 16:49:40 -04:00
fs_fetch_handler.rs
internal.d.ts
lib.deno_fetch.d.ts
lib.rs feat(core): improve resource read & write traits (#16115) 2022-10-09 14:49:25 +00:00
README.md

deno_fetch

This crate implements the Fetch API.

Spec: https://fetch.spec.whatwg.org/