Allow query
option to be a URLSearchParams
instance
#554
Labels
enhancement
This change will extend Got features
good for beginner
This issue is easy to fix
✭ help wanted ✭
For better WHATWG URL compatibility.
https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams
URLSearchParams
supports a string too, so we could just always run it throughURLSearchParams
no matter what, for consistency and code simplicity:got/source/normalize-arguments.js
Lines 72 to 74 in f447378
The text was updated successfully, but these errors were encountered: