Skip to content

Fix duplicate query string keys lost during redirect cycle#17

Merged
luke-owen-crowdhandler merged 1 commit into
mainfrom
maintenance/array-duplication-fix
Feb 8, 2026
Merged

Fix duplicate query string keys lost during redirect cycle#17
luke-owen-crowdhandler merged 1 commit into
mainfrom
maintenance/array-duplication-fix

Conversation

@luke-owen-crowdhandler
Copy link
Copy Markdown
Contributor

queryStringParse now stores duplicate keys as arrays and the reconstruction loop expands them back into separate key=value pairs, matching the fix already applied in the Akamai integration.

queryStringParse now stores duplicate keys as arrays and the
reconstruction loop expands them back into separate key=value pairs,
matching the fix already applied in the Akamai integration.

Co-Authored-By: Claude (claude-opus-4-6) <noreply@anthropic.com>
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Cloudflare Worker’s querystring parsing/reconstruction so duplicate query keys survive a redirect cycle (aligning behavior with the Akamai integration mentioned in the PR description).

Changes:

  • Update helpers.queryStringParse to store duplicate query keys as arrays.
  • Update querystring reconstruction in handleRequest to expand array values back into repeated key=value pairs.
  • Refresh committed build artifacts in dist/ to reflect the source changes.

Reviewed changes

Copilot reviewed 2 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
index.js Rebuilds querystring from parsed object, expanding duplicate-key arrays into repeated pairs.
helpers/misc.js Parses querystrings into an object that preserves duplicates as arrays.
dist/index.js Compiled output reflecting the query parsing and reconstruction changes.
dist/index.js.map Updated sourcemap for the compiled worker bundle.
dist/README.md Updates the build timestamp metadata.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread index.js
Comment thread helpers/misc.js
Comment thread helpers/misc.js
@luke-owen-crowdhandler luke-owen-crowdhandler merged commit 1fe2258 into main Feb 8, 2026
6 checks passed
@luke-owen-crowdhandler luke-owen-crowdhandler deleted the maintenance/array-duplication-fix branch February 8, 2026 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants