0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-30 09:08:00 -04:00
denoland-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 chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
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 perf(ops): Monomorphic sync op calls (#15337) 2022-08-11 15:56:56 +02:00
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 chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
internal.d.ts chore: update copyright year (#13434) 2022-01-20 16:10:16 +09:00
lib.deno_fetch.d.ts docs: add permission tags to JSDocs (#15541) 2022-08-23 10:57:01 +10:00
lib.rs feat(core): improve resource read & write traits (#16115) 2022-10-09 14:49:25 +00:00
README.md Rename extensions/ directory to ext/ (#11643) 2021-08-11 12:27:05 +02:00

deno_fetch

This crate implements the Fetch API.

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