Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit f4b28e0

Browse files
committed
fix: crash when using searchParams option
1 parent b64d4af commit f4b28e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ipfs-http-client/src/lib/to-url-search-params.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export function toUrlSearchParams ({ arg, searchParams, hashAlg, mtime, mode, ..
99
if (searchParams) {
1010
options = {
1111
...options,
12-
...searchParams
12+
...Object.fromEntries(searchParams)
1313
}
1414
}
1515

0 commit comments

Comments
 (0)