Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parseHeaders fails with multiple set-cookie headers in Firefox #928

Comments

@diegodlh
Copy link

diegodlh commented Mar 2, 2021

I'm using @maxlath's wikibase-edit module which depends on cross-fetch, which in turn depends on github/fetch.

I'm developing a plugin for Zotero, which runs on Firefox's runtime environment.

At some point, an XMLHttpRequest is sent, which returns a response with multiple "set-cookie" headers. For some reason, these headers are concatenated (by getAllResponseHeaders() and getResponseHeader()) with \n instead of with \n\t or , . As a result, parseHeaders fails with Invalid character in header field name.

I tried running some test requests on a recent Firefox browser (v85.0). I used Firefox's Browser Toolbox to debug the browser's main process, because otherwise getAllResponseHeaders and getResponseHeader would ignore set-cookie headers. I set up an Apache web server to send duplicate set-cookie and MyHeader headers. In Apache config file:

  ...
  Header add set-cookie "value1"
  Header add set-cookie "value2"
  Header add MyHeader "value1"
  Header add MyHeader "value2"
  ...

Interestingly, whereas getResponseHeader('set-cookie') returns:

value1
value2

getResponseHeader('MyHeader') successfully returns value1, value2.

I don't know enough about the HTTP protocol to understand if this is a bug in Firefox, or if it is an accepted behavior and should be handled by github/fetch.

I understand this may be related to #489.

@BoussonKarel
Copy link

This suddenly introduces a new issue in our code:
image
image

Set-Cookie is a forbidden response-header name:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie
https://fetch.spec.whatwg.org/#forbidden-response-header-name

JakeChampion added a commit that referenced this issue Jul 20, 2023
This reverts commit ce61789.
JakeChampion added a commit that referenced this issue Jul 20, 2023
This reverts commit ce61789.
kodiakhq bot referenced this issue in X-oss-byte/Canary-nextjs Oct 1, 2023
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [whatwg-fetch](https://togithub.com/github/fetch) | [`3.0.0` -> `3.6.19`](https://renovatebot.com/diffs/npm/whatwg-fetch/3.0.0/3.6.19) | [![age](https://developer.mend.io/api/mc/badges/age/npm/whatwg-fetch/3.6.19?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/whatwg-fetch/3.6.19?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/whatwg-fetch/3.0.0/3.6.19?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/whatwg-fetch/3.0.0/3.6.19?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### ⚠ Dependency Lookup Warnings ⚠

Warnings were logged while processing this repo. Please check the Dependency Dashboard for more information.

---

### Release Notes

<details>
<summary>github/fetch (whatwg-fetch)</summary>

### [`v3.6.19`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#3619-2023-09-11)

[Compare Source](https://togithub.com/github/fetch/compare/v3.6.18...v3.6.19)

##### Bug Fixes

-   Have unique error messages for xhr timeouts and errors ([#&#8203;1380](https://togithub.com/JakeChampion/fetch/issues/1380)) ([7170f0b](https://togithub.com/JakeChampion/fetch/commit/7170f0b127d16c5895aba61c9168482834809046))

### [`v3.6.18`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v3618)

[Compare Source](https://togithub.com/github/fetch/compare/v3.6.17...v3.6.18)

-   Fix - File fetching broken since commit [`0c1d2b9`](https://togithub.com/github/fetch/commit/0c1d2b9) [`#1375`](https://togithub.com/JakeChampion/fetch/pull/1375)
-   Remove broken links [`1dc07c6`](https://togithub.com/JakeChampion/fetch/commit/1dc07c6064a32e989306fb2324204c56c93140fe)
-   automatically generate a changelog [`0e7d1dd`](https://togithub.com/JakeChampion/fetch/commit/0e7d1dd95826b3b76510f0832784207f2609145e)

### [`v3.6.17`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v3617)

[Compare Source](https://togithub.com/github/fetch/compare/v3.6.16...v3.6.17)

> 20 July 2023

-   Revert "Resolves [https://github.com/JakeChampion/fetch/issues/928](https://togithub.com/JakeChampion/fetch/issues/928)" [`#928`](https://togithub.com/JakeChampion/fetch/issues/928)

### [`v3.6.16`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v3616)

[Compare Source](https://togithub.com/github/fetch/compare/v3.6.15...v3.6.16)

> 18 July 2023

-   Resolves [https://github.com/JakeChampion/fetch/issues/928](https://togithub.com/JakeChampion/fetch/issues/928) [`#928`](https://togithub.com/JakeChampion/fetch/issues/928)

### [`v3.6.15`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v3615)

[Compare Source](https://togithub.com/github/fetch/compare/v3.6.14...v3.6.15)

> 18 July 2023

-   fix [https://github.com/JakeChampion/fetch/issues/997](https://togithub.com/JakeChampion/fetch/issues/997) [`#997`](https://togithub.com/JakeChampion/fetch/issues/997)

### [`v3.6.14`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v3614)

[Compare Source](https://togithub.com/github/fetch/compare/v3.6.13...v3.6.14)

> 18 July 2023

-   Fix [https://github.com/JakeChampion/fetch/issues/1076](https://togithub.com/JakeChampion/fetch/issues/1076) [`#1076`](https://togithub.com/JakeChampion/fetch/issues/1076)

### [`v3.6.13`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v3613)

[Compare Source](https://togithub.com/github/fetch/compare/v3.6.12...v3.6.13)

> 18 July 2023

-   respect charset within readBlobAsText [`#1059`](https://togithub.com/JakeChampion/fetch/issues/1059)

### [`v3.6.12`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v3612)

[Compare Source](https://togithub.com/github/fetch/compare/v3.6.11...v3.6.12)

> 18 July 2023

-   fix: Headers only accepts array which have nested array of length 2 [`#1235`](https://togithub.com/JakeChampion/fetch/issues/1235)

### [`v3.6.11`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v3611)

[Compare Source](https://togithub.com/github/fetch/compare/v3.6.10...v3.6.11)

> 18 July 2023

-   Define Body.arrayBuffer even if support.blob is false [`#992`](https://togithub.com/JakeChampion/fetch/issues/992)

### [`v3.6.10`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v3610)

[Compare Source](https://togithub.com/github/fetch/compare/v3.6.9...v3.6.10)

> 18 July 2023

-   use globals if they exist [`dffc542`](https://togithub.com/JakeChampion/fetch/commit/dffc542fe7140f35ee7fec29e3da67f3bf080910)

### [`v3.6.9`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v369)

[Compare Source](https://togithub.com/github/fetch/compare/v3.6.8...v3.6.9)

> 18 July 2023

-   fix: when no body supplied, do not set bodyUsed to true [`7d92dff`](https://togithub.com/JakeChampion/fetch/commit/7d92dff12d7c4058b57c7e77adeb0a76ffab639f)

### [`v3.6.8`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v368)

[Compare Source](https://togithub.com/github/fetch/compare/v3.6.7...v3.6.8)

> 18 July 2023

-   validate status is in range [`#1213`](https://togithub.com/JakeChampion/fetch/issues/1213)

### [`v3.6.7`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v367)

[Compare Source](https://togithub.com/github/fetch/compare/v3.6.6...v3.6.7)

> 18 July 2023

-   dont shadow `global` [`#1026`](https://togithub.com/JakeChampion/fetch/issues/1026)
-   dont use github  eslint [`408d3b6`](https://togithub.com/JakeChampion/fetch/commit/408d3b60e27abef325dd898d899430c46a0012b2)
-   remove invalid-headers test [`e3f6590`](https://togithub.com/JakeChampion/fetch/commit/e3f65907924b7692af7c08cd92044456bc92ad8b)
-   Update lock.yml permissions [`e97321b`](https://togithub.com/JakeChampion/fetch/commit/e97321bc081e80275397fc4c7a990791aa8b3524)

### [`v3.6.6`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v366)

[Compare Source](https://togithub.com/github/fetch/compare/v3.6.5...v3.6.6)

> 18 July 2023

-   fix: ignore not throw on invalid response headers [`#930`](https://togithub.com/JakeChampion/fetch/issues/930)

### [`v3.6.5`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v365)

[Compare Source](https://togithub.com/github/fetch/compare/v3.6.4...v3.6.5)

> 18 July 2023

-   Add some missed methods which should be normalized as uppercase [`a43b628`](https://togithub.com/JakeChampion/fetch/commit/a43b6283833c403230bb1a5238e2d7ac435c52da)
-   Update caniuse link to use HTTPS and new pattern [`fb5b0cf`](https://togithub.com/JakeChampion/fetch/commit/fb5b0cf42b470faf8c5448ab461d561f34380a30)

### [`v3.6.4`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v364)

[Compare Source](https://togithub.com/github/fetch/compare/v3.6.3...v3.6.4)

> 18 July 2023

-   always set a signal on Request [`d1d09fb`](https://togithub.com/JakeChampion/fetch/commit/d1d09fb8039b4b8c7f2f5d6c844ea72d8a3cefe6)

### [`v3.6.3`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v363)

[Compare Source](https://togithub.com/github/fetch/compare/v3.6.2...v3.6.3)

> 18 July 2023

-   Compatible global equals to the false [`7727e50`](https://togithub.com/JakeChampion/fetch/commit/7727e50493eafae9a7005f10f18f81e5bbcbfdd3)

### [`v3.6.2`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v362)

[Compare Source](https://togithub.com/github/fetch/compare/v3.6.1...v3.6.2)

> 27 February 2021

-   Revert "Represent non-stringified JSON request body as an \[object Object] string" [`e42f201`](https://togithub.com/JakeChampion/fetch/commit/e42f201b8b0af8b3f2615abe8161c8087f52f1b2)

### [`v3.6.1`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#3619-2023-09-11)

[Compare Source](https://togithub.com/github/fetch/compare/v3.6.0...v3.6.1)

##### Bug Fixes

-   Have unique error messages for xhr timeouts and errors ([#&#8203;1380](https://togithub.com/JakeChampion/fetch/issues/1380)) ([7170f0b](https://togithub.com/JakeChampion/fetch/commit/7170f0b127d16c5895aba61c9168482834809046))

### [`v3.6.0`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v360)

[Compare Source](https://togithub.com/github/fetch/compare/v3.5.0...v3.6.0)

> 18 February 2021

-   Fix statusText: undefined should give '' and null should give 'null' [`b5c8bd0`](https://togithub.com/JakeChampion/fetch/commit/b5c8bd0fee1530f1c204cc5c68b427a3498dbdad)
-   Represent non-stringified JSON request body as an \[object Object] string [`5c6b055`](https://togithub.com/JakeChampion/fetch/commit/5c6b055e6ae6f718f416c94bfcdc89693d0abdcb)
-   Fix eslint and eslint-plugin-github dependency conflicts [`190e698`](https://togithub.com/JakeChampion/fetch/commit/190e698f8e737ad751a11de60f6b8b3301fa557b)

### [`v3.5.0`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v350)

[Compare Source](https://togithub.com/github/fetch/compare/v3.4.1...v3.5.0)

> 6 November 2020

-   Fixes [#&#8203;748](https://togithub.com/github/fetch/issues/748) [`#748`](https://togithub.com/JakeChampion/fetch/issues/748)
-   Create lock.yml [`8767781`](https://togithub.com/JakeChampion/fetch/commit/87677811d543cfb44b124e026b50f710e95017ec)

### [`v3.4.1`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v341)

[Compare Source](https://togithub.com/github/fetch/compare/v3.4.0...v3.4.1)

> 7 September 2020

-   Add npmignore file to ensure we always publish the dist directory [`7ca02eb`](https://togithub.com/JakeChampion/fetch/commit/7ca02eb0234b0a61fd711d922b2e69d3c5390516)
-   Make the clean task remove the dist directory and the default task create it [`fd23745`](https://togithub.com/JakeChampion/fetch/commit/fd23745f3474cd23d88e5128d8bc74813be1aff0)

### [`v3.4.0`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v340)

[Compare Source](https://togithub.com/github/fetch/compare/v3.3.1...v3.4.0)

> 7 August 2020

-   Use globalThis as the global object if it exists [`96c2651`](https://togithub.com/JakeChampion/fetch/commit/96c26512608a0081d493df4fc17da4394bd1b410)

### [`v3.3.1`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v331)

[Compare Source](https://togithub.com/github/fetch/compare/v3.3.0...v3.3.1)

> 4 August 2020

-   rename variable to no longer shadow over function of same name [`c5db762`](https://togithub.com/JakeChampion/fetch/commit/c5db7621c3b1530683b8f706388d4ac210a2db02)
-   remove semicolon to pass linting [`f264aa5`](https://togithub.com/JakeChampion/fetch/commit/f264aa5704f7431c429ec16e6fdd3c7034c7f2d9)

### [`v3.3.0`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v330)

[Compare Source](https://togithub.com/github/fetch/compare/v3.2.0...v3.3.0)

> 4 August 2020

-   Make Response.arrayBuffer() always resolve with a `ArrayBuffer` [`#801`](https://togithub.com/github/fetch/issues/801)
-   Stop using top-level `this` to stop rollup warning [`#802`](https://togithub.com/github/fetch/issues/802)
-   Recommend an AbortController polyfill which is fully synchronous [`#800`](https://togithub.com/github/fetch/issues/800)
-   Add keepalive caveat [`#780`](https://togithub.com/github/fetch/issues/780)
-   Throw a TypeError if Request or Response functions are called without `new` [`5ef028d`](https://togithub.com/JakeChampion/fetch/commit/5ef028d61f6c1543603cdacbe0f8a0f00d5957c0)
-   If headers are passed in via a Record then do not normalise the header names as part of the request [`b65ed60`](https://togithub.com/JakeChampion/fetch/commit/b65ed608604492d605df2d62cd4c5050e2a8d508)
-   Update fetch.js [`37b55c2`](https://togithub.com/JakeChampion/fetch/commit/37b55c27413b902cef4e629892424ae469fb1ea2)

### [`v3.2.0`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v320)

[Compare Source](https://togithub.com/github/fetch/compare/v3.1.1...v3.2.0)

> 9 July 2020

-   Detect if DOMException exists via typeof instead of trying to call it and catching the exception which may get thrown [`#724`](https://togithub.com/github/fetch/issues/724)
-   use `this` if `self` is not defined [`#657`](https://togithub.com/github/fetch/issues/657)
-   create variable called `global` which is either `self` or `this` [`a0783a5`](https://togithub.com/JakeChampion/fetch/commit/a0783a5571018191578cc08d5b3bac61a0b64562)
-   Add support for no-cache and no-store via a cache-busting querystring parameter [`a0dcd85`](https://togithub.com/JakeChampion/fetch/commit/a0dcd853f8ed29d06a022f92c87c303bd0e1f1bf)
-   make global `this` correct when using rollup [`6e9fc0e`](https://togithub.com/JakeChampion/fetch/commit/6e9fc0ee026dd89d864c3d176c57789ee5615114)

### [`v3.1.1`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v311)

[Compare Source](https://togithub.com/github/fetch/compare/v3.1.0...v3.1.1)

> 8 July 2020

-   check if Content-Type header exists prior to  examining the value [`#792`](https://togithub.com/JakeChampion/fetch/pull/792)
-   Move from Travis to GitHub Actions [`#793`](https://togithub.com/JakeChampion/fetch/pull/793)

### [`v3.1.0`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v310)

[Compare Source](https://togithub.com/github/fetch/compare/v3.0.1...v3.1.0)

> 29 June 2020

### [`v3.0.1`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v301)

[Compare Source](https://togithub.com/github/fetch/compare/v3.0.0...v3.0.1)

> 8 July 2020

-   check if Content-Type header exists prior to  examining the value [`#792`](https://togithub.com/JakeChampion/fetch/pull/792)
-   Move from Travis to GitHub Actions [`#793`](https://togithub.com/JakeChampion/fetch/pull/793)
-   Co-authored-by: Jake Champion \<[email protected]> [`#575`](https://togithub.com/JakeChampion/fetch/pull/575)
-   work around IE XHR bug with '' URL Fixes [#&#8203;618](https://togithub.com/github/fetch/issues/618) [`#619`](https://togithub.com/JakeChampion/fetch/pull/619)
-   Allow exclamation mark as valid header character [`#745`](https://togithub.com/JakeChampion/fetch/pull/745)
-   Avoid blob conversion for specific requests [`#752`](https://togithub.com/JakeChampion/fetch/pull/752)
-   Compatibility for fetch-mock using proxy-pollyfill [`#736`](https://togithub.com/JakeChampion/fetch/pull/736)
-   Change default statusText for Response [`#698`](https://togithub.com/JakeChampion/fetch/pull/698)
-   Document more common pitfalls in the README [`#734`](https://togithub.com/JakeChampion/fetch/pull/734)
-   field name can not by empty [`#684`](https://togithub.com/JakeChampion/fetch/pull/684)
-   work around IE XHR bug with '' URL Fixes [#&#8203;618](https://togithub.com/github/fetch/issues/618) ([#&#8203;619](https://togithub.com/github/fetch/issues/619)) [`#618`](https://togithub.com/JakeChampion/fetch/issues/618)
-   Clarify what parts of the standard we don't want to implement [`#661`](https://togithub.com/JakeChampion/fetch/issues/661)
-   Document more caveats [`9a0bce2`](https://togithub.com/JakeChampion/fetch/commit/9a0bce23454cdd5beefd9d4c599664003573e581)
-   Fix issue [#&#8203;533](https://togithub.com/github/fetch/issues/533) [`7f030fa`](https://togithub.com/JakeChampion/fetch/commit/7f030fab4d79433204331cefe365f5fbbab9e992)
-   Compatibility with newer eslint-plugin-github [`1821b74`](https://togithub.com/JakeChampion/fetch/commit/1821b74b808152d4d6e787c21165f2d569c2a7c4)

##### [v3.0.0](https://togithub.com/JakeChampion/fetch/compare/v2.0.4...v3.0.0)

> 7 September 2018

-   Add flow definitions [`#654`](https://togithub.com/JakeChampion/fetch/pull/654)
-   Match spec behavior re: unsupported body type [`#651`](https://togithub.com/JakeChampion/fetch/pull/651)
-   Update Karma and detect available browsers when testing [`#652`](https://togithub.com/JakeChampion/fetch/pull/652)
-   Adopt Contributor Covenant Code of Conduct [`#649`](https://togithub.com/JakeChampion/fetch/pull/649)
-   Change `credentials` default value to `same-origin` [`#640`](https://togithub.com/JakeChampion/fetch/pull/640)
-   Switch test suite from PhantomJS to Karma [`#626`](https://togithub.com/JakeChampion/fetch/pull/626)
-   Support abort API [`#592`](https://togithub.com/JakeChampion/fetch/pull/592)
-   build/distribute as UMD [`#616`](https://togithub.com/JakeChampion/fetch/pull/616)
-   Test signal reuse. Add AbortSignal polyfill. [`#2`](https://togithub.com/JakeChampion/fetch/pull/2)
-   Clear abort event listener for all xhr completion states. [`#1`](https://togithub.com/JakeChampion/fetch/pull/1)
-   Expand install & importing documentation [`#569`](https://togithub.com/JakeChampion/fetch/issues/569)
-   Match spec behavior re: unsupported body type [`#576`](https://togithub.com/JakeChampion/fetch/issues/576)
-   Run test files through prettier [`0a57487`](https://togithub.com/JakeChampion/fetch/commit/0a5748775d99f882172375693f56761383f8faf3)
-   Unwrap `fetch.js` to be a clean module file [`8aec47c`](https://togithub.com/JakeChampion/fetch/commit/8aec47cb6c67a9a321f1eb07457f70fc46235610)
-   Switch from PhantomJS to Karma + Chrome/Firefox for testing [`b539589`](https://togithub.com/JakeChampion/fetch/commit/b53958904649bfeb784083b9b7e0b89902c7d30e)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/X-oss-byte/Canary-nextjs).
kodiakhq bot referenced this issue in X-oss-byte/Nextjs Oct 6, 2023
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [whatwg-fetch](https://togithub.com/github/fetch) | [`3.0.0` -> `3.6.19`](https://renovatebot.com/diffs/npm/whatwg-fetch/3.0.0/3.6.19) | [![age](https://developer.mend.io/api/mc/badges/age/npm/whatwg-fetch/3.6.19?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/whatwg-fetch/3.6.19?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/whatwg-fetch/3.0.0/3.6.19?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/whatwg-fetch/3.0.0/3.6.19?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>github/fetch (whatwg-fetch)</summary>

### [`v3.6.19`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#3619-2023-09-11)

[Compare Source](https://togithub.com/github/fetch/compare/v3.6.18...v3.6.19)

##### Bug Fixes

-   Have unique error messages for xhr timeouts and errors ([#&#8203;1380](https://togithub.com/JakeChampion/fetch/issues/1380)) ([7170f0b](https://togithub.com/JakeChampion/fetch/commit/7170f0b127d16c5895aba61c9168482834809046))

### [`v3.6.18`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v3618)

[Compare Source](https://togithub.com/github/fetch/compare/v3.6.17...v3.6.18)

-   Fix - File fetching broken since commit [`0c1d2b9`](https://togithub.com/github/fetch/commit/0c1d2b9) [`#1375`](https://togithub.com/JakeChampion/fetch/pull/1375)
-   Remove broken links [`1dc07c6`](https://togithub.com/JakeChampion/fetch/commit/1dc07c6064a32e989306fb2324204c56c93140fe)
-   automatically generate a changelog [`0e7d1dd`](https://togithub.com/JakeChampion/fetch/commit/0e7d1dd95826b3b76510f0832784207f2609145e)

### [`v3.6.17`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v3617)

[Compare Source](https://togithub.com/github/fetch/compare/v3.6.16...v3.6.17)

> 20 July 2023

-   Revert "Resolves [https://github.com/JakeChampion/fetch/issues/928](https://togithub.com/JakeChampion/fetch/issues/928)" [`#928`](https://togithub.com/JakeChampion/fetch/issues/928)

### [`v3.6.16`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v3616)

[Compare Source](https://togithub.com/github/fetch/compare/v3.6.15...v3.6.16)

> 18 July 2023

-   Resolves [https://github.com/JakeChampion/fetch/issues/928](https://togithub.com/JakeChampion/fetch/issues/928) [`#928`](https://togithub.com/JakeChampion/fetch/issues/928)

### [`v3.6.15`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v3615)

[Compare Source](https://togithub.com/github/fetch/compare/v3.6.14...v3.6.15)

> 18 July 2023

-   fix [https://github.com/JakeChampion/fetch/issues/997](https://togithub.com/JakeChampion/fetch/issues/997) [`#997`](https://togithub.com/JakeChampion/fetch/issues/997)

### [`v3.6.14`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v3614)

[Compare Source](https://togithub.com/github/fetch/compare/v3.6.13...v3.6.14)

> 18 July 2023

-   Fix [https://github.com/JakeChampion/fetch/issues/1076](https://togithub.com/JakeChampion/fetch/issues/1076) [`#1076`](https://togithub.com/JakeChampion/fetch/issues/1076)

### [`v3.6.13`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v3613)

[Compare Source](https://togithub.com/github/fetch/compare/v3.6.12...v3.6.13)

> 18 July 2023

-   respect charset within readBlobAsText [`#1059`](https://togithub.com/JakeChampion/fetch/issues/1059)

### [`v3.6.12`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v3612)

[Compare Source](https://togithub.com/github/fetch/compare/v3.6.11...v3.6.12)

> 18 July 2023

-   fix: Headers only accepts array which have nested array of length 2 [`#1235`](https://togithub.com/JakeChampion/fetch/issues/1235)

### [`v3.6.11`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v3611)

[Compare Source](https://togithub.com/github/fetch/compare/v3.6.10...v3.6.11)

> 18 July 2023

-   Define Body.arrayBuffer even if support.blob is false [`#992`](https://togithub.com/JakeChampion/fetch/issues/992)

### [`v3.6.10`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v3610)

[Compare Source](https://togithub.com/github/fetch/compare/v3.6.9...v3.6.10)

> 18 July 2023

-   use globals if they exist [`dffc542`](https://togithub.com/JakeChampion/fetch/commit/dffc542fe7140f35ee7fec29e3da67f3bf080910)

### [`v3.6.9`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v369)

[Compare Source](https://togithub.com/github/fetch/compare/v3.6.8...v3.6.9)

> 18 July 2023

-   fix: when no body supplied, do not set bodyUsed to true [`7d92dff`](https://togithub.com/JakeChampion/fetch/commit/7d92dff12d7c4058b57c7e77adeb0a76ffab639f)

### [`v3.6.8`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v368)

[Compare Source](https://togithub.com/github/fetch/compare/v3.6.7...v3.6.8)

> 18 July 2023

-   validate status is in range [`#1213`](https://togithub.com/JakeChampion/fetch/issues/1213)

### [`v3.6.7`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v367)

[Compare Source](https://togithub.com/github/fetch/compare/v3.6.6...v3.6.7)

> 18 July 2023

-   dont shadow `global` [`#1026`](https://togithub.com/JakeChampion/fetch/issues/1026)
-   dont use github  eslint [`408d3b6`](https://togithub.com/JakeChampion/fetch/commit/408d3b60e27abef325dd898d899430c46a0012b2)
-   remove invalid-headers test [`e3f6590`](https://togithub.com/JakeChampion/fetch/commit/e3f65907924b7692af7c08cd92044456bc92ad8b)
-   Update lock.yml permissions [`e97321b`](https://togithub.com/JakeChampion/fetch/commit/e97321bc081e80275397fc4c7a990791aa8b3524)

### [`v3.6.6`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v366)

[Compare Source](https://togithub.com/github/fetch/compare/v3.6.5...v3.6.6)

> 18 July 2023

-   fix: ignore not throw on invalid response headers [`#930`](https://togithub.com/JakeChampion/fetch/issues/930)

### [`v3.6.5`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v365)

[Compare Source](https://togithub.com/github/fetch/compare/v3.6.4...v3.6.5)

> 18 July 2023

-   Add some missed methods which should be normalized as uppercase [`a43b628`](https://togithub.com/JakeChampion/fetch/commit/a43b6283833c403230bb1a5238e2d7ac435c52da)
-   Update caniuse link to use HTTPS and new pattern [`fb5b0cf`](https://togithub.com/JakeChampion/fetch/commit/fb5b0cf42b470faf8c5448ab461d561f34380a30)

### [`v3.6.4`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v364)

[Compare Source](https://togithub.com/github/fetch/compare/v3.6.3...v3.6.4)

> 18 July 2023

-   always set a signal on Request [`d1d09fb`](https://togithub.com/JakeChampion/fetch/commit/d1d09fb8039b4b8c7f2f5d6c844ea72d8a3cefe6)

### [`v3.6.3`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v363)

[Compare Source](https://togithub.com/github/fetch/compare/v3.6.2...v3.6.3)

> 18 July 2023

-   Compatible global equals to the false [`7727e50`](https://togithub.com/JakeChampion/fetch/commit/7727e50493eafae9a7005f10f18f81e5bbcbfdd3)

### [`v3.6.2`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v362)

[Compare Source](https://togithub.com/github/fetch/compare/v3.6.1...v3.6.2)

> 27 February 2021

-   Revert "Represent non-stringified JSON request body as an \[object Object] string" [`e42f201`](https://togithub.com/JakeChampion/fetch/commit/e42f201b8b0af8b3f2615abe8161c8087f52f1b2)

### [`v3.6.1`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#3619-2023-09-11)

[Compare Source](https://togithub.com/github/fetch/compare/v3.6.0...v3.6.1)

##### Bug Fixes

-   Have unique error messages for xhr timeouts and errors ([#&#8203;1380](https://togithub.com/JakeChampion/fetch/issues/1380)) ([7170f0b](https://togithub.com/JakeChampion/fetch/commit/7170f0b127d16c5895aba61c9168482834809046))

### [`v3.6.0`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v360)

[Compare Source](https://togithub.com/github/fetch/compare/v3.5.0...v3.6.0)

> 18 February 2021

-   Fix statusText: undefined should give '' and null should give 'null' [`b5c8bd0`](https://togithub.com/JakeChampion/fetch/commit/b5c8bd0fee1530f1c204cc5c68b427a3498dbdad)
-   Represent non-stringified JSON request body as an \[object Object] string [`5c6b055`](https://togithub.com/JakeChampion/fetch/commit/5c6b055e6ae6f718f416c94bfcdc89693d0abdcb)
-   Fix eslint and eslint-plugin-github dependency conflicts [`190e698`](https://togithub.com/JakeChampion/fetch/commit/190e698f8e737ad751a11de60f6b8b3301fa557b)

### [`v3.5.0`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v350)

[Compare Source](https://togithub.com/github/fetch/compare/v3.4.1...v3.5.0)

> 6 November 2020

-   Fixes [#&#8203;748](https://togithub.com/github/fetch/issues/748) [`#748`](https://togithub.com/JakeChampion/fetch/issues/748)
-   Create lock.yml [`8767781`](https://togithub.com/JakeChampion/fetch/commit/87677811d543cfb44b124e026b50f710e95017ec)

### [`v3.4.1`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v341)

[Compare Source](https://togithub.com/github/fetch/compare/v3.4.0...v3.4.1)

> 7 September 2020

-   Add npmignore file to ensure we always publish the dist directory [`7ca02eb`](https://togithub.com/JakeChampion/fetch/commit/7ca02eb0234b0a61fd711d922b2e69d3c5390516)
-   Make the clean task remove the dist directory and the default task create it [`fd23745`](https://togithub.com/JakeChampion/fetch/commit/fd23745f3474cd23d88e5128d8bc74813be1aff0)

### [`v3.4.0`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v340)

[Compare Source](https://togithub.com/github/fetch/compare/v3.3.1...v3.4.0)

> 7 August 2020

-   Use globalThis as the global object if it exists [`96c2651`](https://togithub.com/JakeChampion/fetch/commit/96c26512608a0081d493df4fc17da4394bd1b410)

### [`v3.3.1`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v331)

[Compare Source](https://togithub.com/github/fetch/compare/v3.3.0...v3.3.1)

> 4 August 2020

-   rename variable to no longer shadow over function of same name [`c5db762`](https://togithub.com/JakeChampion/fetch/commit/c5db7621c3b1530683b8f706388d4ac210a2db02)
-   remove semicolon to pass linting [`f264aa5`](https://togithub.com/JakeChampion/fetch/commit/f264aa5704f7431c429ec16e6fdd3c7034c7f2d9)

### [`v3.3.0`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v330)

[Compare Source](https://togithub.com/github/fetch/compare/v3.2.0...v3.3.0)

> 4 August 2020

-   Make Response.arrayBuffer() always resolve with a `ArrayBuffer` [`#801`](https://togithub.com/github/fetch/issues/801)
-   Stop using top-level `this` to stop rollup warning [`#802`](https://togithub.com/github/fetch/issues/802)
-   Recommend an AbortController polyfill which is fully synchronous [`#800`](https://togithub.com/github/fetch/issues/800)
-   Add keepalive caveat [`#780`](https://togithub.com/github/fetch/issues/780)
-   Throw a TypeError if Request or Response functions are called without `new` [`5ef028d`](https://togithub.com/JakeChampion/fetch/commit/5ef028d61f6c1543603cdacbe0f8a0f00d5957c0)
-   If headers are passed in via a Record then do not normalise the header names as part of the request [`b65ed60`](https://togithub.com/JakeChampion/fetch/commit/b65ed608604492d605df2d62cd4c5050e2a8d508)
-   Update fetch.js [`37b55c2`](https://togithub.com/JakeChampion/fetch/commit/37b55c27413b902cef4e629892424ae469fb1ea2)

### [`v3.2.0`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v320)

[Compare Source](https://togithub.com/github/fetch/compare/v3.1.1...v3.2.0)

> 9 July 2020

-   Detect if DOMException exists via typeof instead of trying to call it and catching the exception which may get thrown [`#724`](https://togithub.com/github/fetch/issues/724)
-   use `this` if `self` is not defined [`#657`](https://togithub.com/github/fetch/issues/657)
-   create variable called `global` which is either `self` or `this` [`a0783a5`](https://togithub.com/JakeChampion/fetch/commit/a0783a5571018191578cc08d5b3bac61a0b64562)
-   Add support for no-cache and no-store via a cache-busting querystring parameter [`a0dcd85`](https://togithub.com/JakeChampion/fetch/commit/a0dcd853f8ed29d06a022f92c87c303bd0e1f1bf)
-   make global `this` correct when using rollup [`6e9fc0e`](https://togithub.com/JakeChampion/fetch/commit/6e9fc0ee026dd89d864c3d176c57789ee5615114)

### [`v3.1.1`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v311)

[Compare Source](https://togithub.com/github/fetch/compare/v3.1.0...v3.1.1)

> 8 July 2020

-   check if Content-Type header exists prior to  examining the value [`#792`](https://togithub.com/JakeChampion/fetch/pull/792)
-   Move from Travis to GitHub Actions [`#793`](https://togithub.com/JakeChampion/fetch/pull/793)

### [`v3.1.0`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v310)

[Compare Source](https://togithub.com/github/fetch/compare/v3.0.1...v3.1.0)

> 29 June 2020

### [`v3.0.1`](https://togithub.com/github/fetch/blob/HEAD/CHANGELOG.md#v301)

[Compare Source](https://togithub.com/github/fetch/compare/v3.0.0...v3.0.1)

> 8 July 2020

-   check if Content-Type header exists prior to  examining the value [`#792`](https://togithub.com/JakeChampion/fetch/pull/792)
-   Move from Travis to GitHub Actions [`#793`](https://togithub.com/JakeChampion/fetch/pull/793)
-   Co-authored-by: Jake Champion \<[email protected]> [`#575`](https://togithub.com/JakeChampion/fetch/pull/575)
-   work around IE XHR bug with '' URL Fixes [#&#8203;618](https://togithub.com/github/fetch/issues/618) [`#619`](https://togithub.com/JakeChampion/fetch/pull/619)
-   Allow exclamation mark as valid header character [`#745`](https://togithub.com/JakeChampion/fetch/pull/745)
-   Avoid blob conversion for specific requests [`#752`](https://togithub.com/JakeChampion/fetch/pull/752)
-   Compatibility for fetch-mock using proxy-pollyfill [`#736`](https://togithub.com/JakeChampion/fetch/pull/736)
-   Change default statusText for Response [`#698`](https://togithub.com/JakeChampion/fetch/pull/698)
-   Document more common pitfalls in the README [`#734`](https://togithub.com/JakeChampion/fetch/pull/734)
-   field name can not by empty [`#684`](https://togithub.com/JakeChampion/fetch/pull/684)
-   work around IE XHR bug with '' URL Fixes [#&#8203;618](https://togithub.com/github/fetch/issues/618) ([#&#8203;619](https://togithub.com/github/fetch/issues/619)) [`#618`](https://togithub.com/JakeChampion/fetch/issues/618)
-   Clarify what parts of the standard we don't want to implement [`#661`](https://togithub.com/JakeChampion/fetch/issues/661)
-   Document more caveats [`9a0bce2`](https://togithub.com/JakeChampion/fetch/commit/9a0bce23454cdd5beefd9d4c599664003573e581)
-   Fix issue [#&#8203;533](https://togithub.com/github/fetch/issues/533) [`7f030fa`](https://togithub.com/JakeChampion/fetch/commit/7f030fab4d79433204331cefe365f5fbbab9e992)
-   Compatibility with newer eslint-plugin-github [`1821b74`](https://togithub.com/JakeChampion/fetch/commit/1821b74b808152d4d6e787c21165f2d569c2a7c4)

##### [v3.0.0](https://togithub.com/JakeChampion/fetch/compare/v2.0.4...v3.0.0)

> 7 September 2018

-   Add flow definitions [`#654`](https://togithub.com/JakeChampion/fetch/pull/654)
-   Match spec behavior re: unsupported body type [`#651`](https://togithub.com/JakeChampion/fetch/pull/651)
-   Update Karma and detect available browsers when testing [`#652`](https://togithub.com/JakeChampion/fetch/pull/652)
-   Adopt Contributor Covenant Code of Conduct [`#649`](https://togithub.com/JakeChampion/fetch/pull/649)
-   Change `credentials` default value to `same-origin` [`#640`](https://togithub.com/JakeChampion/fetch/pull/640)
-   Switch test suite from PhantomJS to Karma [`#626`](https://togithub.com/JakeChampion/fetch/pull/626)
-   Support abort API [`#592`](https://togithub.com/JakeChampion/fetch/pull/592)
-   build/distribute as UMD [`#616`](https://togithub.com/JakeChampion/fetch/pull/616)
-   Test signal reuse. Add AbortSignal polyfill. [`#2`](https://togithub.com/JakeChampion/fetch/pull/2)
-   Clear abort event listener for all xhr completion states. [`#1`](https://togithub.com/JakeChampion/fetch/pull/1)
-   Expand install & importing documentation [`#569`](https://togithub.com/JakeChampion/fetch/issues/569)
-   Match spec behavior re: unsupported body type [`#576`](https://togithub.com/JakeChampion/fetch/issues/576)
-   Run test files through prettier [`0a57487`](https://togithub.com/JakeChampion/fetch/commit/0a5748775d99f882172375693f56761383f8faf3)
-   Unwrap `fetch.js` to be a clean module file [`8aec47c`](https://togithub.com/JakeChampion/fetch/commit/8aec47cb6c67a9a321f1eb07457f70fc46235610)
-   Switch from PhantomJS to Karma + Chrome/Firefox for testing [`b539589`](https://togithub.com/JakeChampion/fetch/commit/b53958904649bfeb784083b9b7e0b89902c7d30e)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/X-oss-byte/Nextjs).
cr313 added a commit to cr313/fetch-Js-flow that referenced this issue Apr 19, 2024
cr313 added a commit to cr313/fetch-Js-flow that referenced this issue Apr 19, 2024
This reverts commit ce6178923aca5cabd2cbf031770e5672e4e2ca62.
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.