juanthropic opened a new pull request, #13424:
URL: https://github.com/apache/trafficserver/pull/13424

   Add a `sort-destination QUERY` operator to header_rewrite that stably
   sorts the request URL's query parameters by name. Normalizing parameter
   order lets varied client query strings map to one origin request, which
   helps origin-side caching and dedup.
   
   The sort logic lives in a new pure, TS-API-free `sort_query()` helper
   with its own unit test, kept separate from the operator so the
   cache-key and parent-key operators can reuse it in a later PR.
   
   - `sort_query()` uses a stable sort, so duplicate-named parameters keep
     their relative order.
   - Empty tokens from leading, trailing, or consecutive `&` are dropped.
   - Docs note that `QUERY` is the only supported part; any other part is a
     no-op, matching the sibling `rm-destination` wording.
   
   Covered by a Catch2 unit test for the helper and an end-to-end Proxy
   Verifier test that checks an unsorted client query reaches the origin
   sorted.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to