Skip to content

feat: add support for identity compression algorithm in confighttp#15656

Open
farhan11166 wants to merge 1 commit into
open-telemetry:mainfrom
farhan11166:pr-identity-fix
Open

feat: add support for identity compression algorithm in confighttp#15656
farhan11166 wants to merge 1 commit into
open-telemetry:mainfrom
farhan11166:pr-identity-fix

Conversation

@farhan11166

Copy link
Copy Markdown

Description

Per RFC 7231 3.1.2.2, Content-Encoding: identity is a valid header value that signifies no encoding/compression was used.

The httpContentDecompressor previously rejected payloads with Content-Encoding: identity with a 400 Bad Request because "identity" was not registered in the available decoders. This PR fixes the issue by mapping "identity" to act as a pass-through (identical to "") whenever uncompressed payloads are allowed.

This also resolves a documented // BUG: in the compression_test.go suite.

Link to tracking issue

Fixes #

Testing

  • Updated the Mixed_Identity_ShouldAccept test case in compression_test.go which previously expected a 400 Bad Request (marked as a BUG) to correctly expect 200 OK.
  • Ran go test ./... in config/confighttp and verified all tests pass.

Documentation

None needed.

Authorship

  • I, a human, wrote this pull request description myself.

@farhan11166
farhan11166 requested a review from a team as a code owner July 24, 2026 17:33
@farhan11166
farhan11166 requested a review from jmacd July 24, 2026 17:33
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