The Wayback Machine - https://web.archive.org/web/20210918092956/https://github.com/topics/fetch
Skip to content
#

fetch

Here are 1,890 public repositories matching this topic...

swr
huozhi
huozhi commented Sep 3, 2021

Currently use scripts to install node_modules and next inside examples, and run them with require hooks to debug with local swr assets. It's not deal since it's too complicated and not scalable.

Goal

  • Find a better way to debug with example / test case with local swr
  • Less dependencies and easy setup
node-fetch
brighttank
brighttank commented Aug 9, 2021

For some reason Amazon REST api's require the content-type to be set to "application/x-amz-json-1.1" instead of the standard "application/json"

Currently the content-type header is set automatically for json data overriding any headers passed in to the request.

It would be useful to first check if the header is set before overriding it:

if (!this.request.headers.set('content-type')) {

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