Skip to content

Commit 15576b2

Browse files
authored
fix: fetch takes a string, not a URL (#75)
Fixes #74
1 parent 423c878 commit 15576b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/http.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ class HTTP {
145145
const abortController = new AbortController()
146146
const signal = anySignal([abortController.signal, opts.signal])
147147

148-
const response = await timeout(fetch(url, {
148+
const response = await timeout(fetch(url.toString(), {
149149
...opts,
150150
signal,
151151
timeout: undefined

0 commit comments

Comments
 (0)