kwhitley / itty-fetcher

An even simpler wrapper around native Fetch to strip boilerplate from your fetching code!
MIT License
99 stars 4 forks source link

Error if `content-type` doesn't exists #30

Closed beautyfree closed 1 year ago

beautyfree commented 1 year ago

There is the includes method https://github.com/kwhitley/itty-fetcher/blob/v0.x/src/itty-fetcher.ts#L130 which try to define type of returned data, but we encountered a case where a third-party service does not return content-type

image

kwhitley commented 1 year ago

Sorted via #33 :)