Skip to content

Preserve request headers when mutating cache tests#7

Merged
atomiczsec merged 1 commit intomainfrom
codex/implement-request-cloning-and-rewriting-helper
Nov 16, 2025
Merged

Preserve request headers when mutating cache tests#7
atomiczsec merged 1 commit intomainfrom
codex/implement-request-cloning-and-rewriting-helper

Conversation

@atomiczsec
Copy link
Owner

Summary

  • clone the original request line, headers, and body before mutating request targets so cache-busting tests work for any method while preserving sensitive headers
  • add a helper for the HPP cache-key test to rebuild requests with polluted query strings and bail out cleanly when a request cannot be built
  • share the new cloning logic to keep normalization and other cache tests from losing authentication headers while still allowing cookies to be stripped

Testing

  • ./gradlew test

Codex Task

@atomiczsec atomiczsec merged commit aa6e1c5 into main Nov 16, 2025
1 check passed
@atomiczsec atomiczsec deleted the codex/implement-request-cloning-and-rewriting-helper branch November 16, 2025 16:29
@atomiczsec atomiczsec removed the codex label Nov 18, 2025
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.

1 participant