fix: Ensure search parameters are included in URL path (#759)

* fix search params missing from url path

* fix search params missing from url path

* Trigger travis ci

Co-authored-by: Antoni Kepinski <xxczaki@pm.me>
This commit is contained in:
Saksama Terminal 2020-04-13 22:23:26 +08:00 committed by GitHub
parent b1bd179891
commit 33532c29e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -260,7 +260,7 @@ export function getNodeRequestOptions(request) {
// manually spread the URL object instead of spread syntax
const requestOptions = {
path: parsedURL.pathname,
path: parsedURL.pathname + parsedURL.search,
pathname: parsedURL.pathname,
hostname: parsedURL.hostname,
protocol: parsedURL.protocol,