Skip to content

Commit 9afe3d1

Browse files
Ensuring that query strings are included in the URL parameter when submitted to the CrowdHandler API via GET request
1 parent 0d95797 commit 9afe3d1

4 files changed

Lines changed: 1 addition & 3 deletions

File tree

dist/originOverride.zip

0 Bytes
Binary file not shown.

dist/viewerRequest.zip

-13 Bytes
Binary file not shown.

dist/viewerResponse.zip

0 Bytes
Binary file not shown.

handlerViewerRequest.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,7 @@ module.exports.viewerRequest = async (event) => {
143143
headers: headers,
144144
hostname: APIDomain,
145145
method: "GET",
146-
path: `/v1/requests/${token}?url=${encodeURIComponent(
147-
FQDN
148-
)}&agent=${encodeURIComponent(userAgent)}&ip=${encodeURIComponent(
146+
path: `/v1/requests/${token}?url=${targetURL}&agent=${encodeURIComponent(userAgent)}&ip=${encodeURIComponent(
149147
IPAddress
150148
)}&lang=${encodeURIComponent(language)}`,
151149
port: 443,

0 commit comments

Comments
 (0)