We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e2d0b7 commit 36c4dddCopy full SHA for 36c4ddd
src/index.js
@@ -187,11 +187,9 @@ function create(defaults) {
187
}
188
189
if (options.params) {
190
- const divider = ~url.indexOf('?') ? '&' : '?';
191
- const query = options.paramsSerializer
192
- ? options.paramsSerializer(options.params)
193
- : new URLSearchParams(options.params);
194
- url += divider + query;
+ url +=
+ (~url.indexOf('?') ? '&' : '?') +
+ (options.paramsSerializer ? options.paramsSerializer(options.params) : new URLSearchParams(options.params));
195
196
197
const fetchFunc = options.fetch || fetch;
0 commit comments