Skip to content

Commit b94df9c

Browse files
committed
f
1 parent 1d451fe commit b94df9c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/HttpClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ export class HttpClient extends EventEmitter {
457457
const querystring = qs.stringify(args.data);
458458
// reset the requestUrl
459459
const href = requestUrl.href;
460-
requestUrl = new URL(href + (requestUrl.searchParams.size > 0 ? '&' : '?') + querystring);
460+
requestUrl = new URL(href + (href.includes('?') ? '&' : '?') + querystring);
461461
} else {
462462
for (const field in args.data) {
463463
const fieldValue = args.data[field];

0 commit comments

Comments
 (0)