Skip to content

Commit a8c4ba5

Browse files
authored
Merge pull request #407 from the-hideout/log-queries
clear search paramaters for origin request
2 parents d11d275 + 8c0b73a commit a8c4ba5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

index.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ async function graphqlHandler(request, env, ctx) {
7171
console.info(requestId);
7272
console.log(new Date().toLocaleString('en-US', { timeZone: 'UTC' }));
7373
console.log(`KVs pre-loaded: ${dataAPI.kvLoaded.join(', ') || 'none'}`);
74-
//console.log(query);
74+
//console.log('query', query);
75+
//console.log('variables', variables);
7576
if (request.headers.has('x-newrelic-synthetics')) {
7677
console.log('NewRelic health check');
7778
//return new Response(JSON.stringify({}), responseOptions);
@@ -106,6 +107,7 @@ async function graphqlHandler(request, env, ctx) {
106107
if (env.USE_ORIGIN === 'true') {
107108
try {
108109
const originUrl = new URL(request.url);
110+
originUrl.search = '';
109111
if (env.ORIGIN_OVERRIDE) {
110112
originUrl.host = env.ORIGIN_OVERRIDE;
111113
}

0 commit comments

Comments
 (0)