Skip to content

Skip X-Cortex-Record in httpx.SyncRequestHeaders, as ext_proc does #2005

Open

Description

@michaljacovi

httpx.SyncRequestHeaders (core/listener/httpx/request.go) skips only Content-Length and Content-Encoding, so a plugin that writes X-Cortex-Record back into pctx.Headers would have it forwarded upstream by the forward and reverse proxies; add strings.EqualFold(k, model.RecordHeader) to that skip list so they match ext_proc, which removes it also when a plugin wrote it back. From @mrsabath's review of #1959 (comment 4631593982). Part of #1923.

Assisted-By: Claude (Anthropic AI) noreply@anthropic.com

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions