Skip to content

Commit 1325d40

Browse files
Merge pull request #4 from Crowdhandler/improvement/cache-buster-support
Ensuring that query strings are included in the URL parameter when su…
2 parents 0d95797 + 9afe3d1 commit 1325d40

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)