Skip to content
#

fetch

Here are 2,294 public repositories matching this topic...

node-fetch
tinovyatkin
tinovyatkin commented Jun 12, 2020

node-fetch currently completely ignoring Content-Length header while consuming response.
Fetch specification about handling Content-Length on server response says almost nothing:
https://fetch.spec.whatwg.org/#concept-http-network-fetch (see whatwg/fetch#67)

On other hand, we have a fetch-node specific extension to limit the size of the response.

My prop

annevk
annevk commented Aug 18, 2020

Presumably these should result in a network error. The current specification doesn't state anything and it's not tested either.

See the README for instructions on where to add tests. In the specification the "blob" case of https://fetch.spec.whatwg.org/#scheme-fetch needs updating to handle current URL’s blob URL entry being null.

good first issue

Improve this page

Add a description, image, and links to the fetch topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the fetch topic, visit your repo's landing page and select "manage topics."

Learn more