Skip to content

Commit

Permalink
fix: fetch takes a string, not a URL (#75)
Browse files Browse the repository at this point in the history
Fixes #74
  • Loading branch information
roderik authored Nov 9, 2020
1 parent 423c878 commit 15576b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class HTTP {
const abortController = new AbortController()
const signal = anySignal([abortController.signal, opts.signal])

const response = await timeout(fetch(url, {
const response = await timeout(fetch(url.toString(), {
...opts,
signal,
timeout: undefined
Expand Down

0 comments on commit 15576b2

Please sign in to comment.