Skip to content

Conversation

@alexagriffith
Copy link
Contributor

@alexagriffith alexagriffith commented Jun 5, 2025

Commit Message

This is a hotfix for a bug where if the gzip header is present, we decompress and leave the header. This results in the client throwing an error trying to decompress based on the header, but it has already been decompressed. This hot fix removes the header. In the future we probably want to return it compressed with the header intact.

for example - the error I encountered was io.netty.handler.codec.compression.DecompressionException: Input is not in the GZIP format

Co-authored-by: Sukumar Gaonkar [email protected]

Signed-off-by: Alexa Griffith <[email protected]>
@alexagriffith alexagriffith requested a review from a team as a code owner June 5, 2025 15:29
@alexagriffith alexagriffith changed the title hotfix for gzip header extproc: hotfix for gzip header Jun 5, 2025
Co-authored-by: Sukumar Gaonkar <[email protected]>
Signed-off-by: Alexa Griffith <[email protected]>
Copy link
Member

@mathetake mathetake left a comment

Choose a reason for hiding this comment

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

LGTM 💯

@mathetake mathetake merged commit d17719c into envoyproxy:main Jun 5, 2025
21 checks passed
@alexagriffith alexagriffith deleted the alexagriffith/hotfix-gzip-header branch June 5, 2025 15:41
mathetake added a commit that referenced this pull request Jun 5, 2025
**Commit Message**

Clearing content-type header is only necessary when the response
mutation is actually happening. Otherwise, say when the original
response is in gzip and not mutation is happening, the client gets gzip
and no content-encoding header.

**Related Issues/PRs (if applicable)**

Follow up on #683

---------

Signed-off-by: Takeshi Yoneda <[email protected]>
Co-authored-by: Erica Hughberg <[email protected]>
cmaddalozzo pushed a commit to cmaddalozzo/ai-gateway that referenced this pull request Jun 11, 2025
**Commit Message**

This is a hotfix for a bug where if the gzip header is present, we
decompress and leave the header. This results in the client throwing an
error trying to decompress based on the header, but it has already been
decompressed. This hot fix removes the header. In the future we probably
want to return it compressed with the header intact.

for example - the error I encountered was
```io.netty.handler.codec.compression.DecompressionException: Input is
not in the GZIP format```

Co-authored-by: Sukumar Gaonkar <[email protected]>

---------

Signed-off-by: Alexa Griffith <[email protected]>
Co-authored-by: Sukumar Gaonkar <[email protected]>
cmaddalozzo pushed a commit to cmaddalozzo/ai-gateway that referenced this pull request Jun 11, 2025
…#685)

**Commit Message**

Clearing content-type header is only necessary when the response
mutation is actually happening. Otherwise, say when the original
response is in gzip and not mutation is happening, the client gets gzip
and no content-encoding header.

**Related Issues/PRs (if applicable)**

Follow up on envoyproxy#683

---------

Signed-off-by: Takeshi Yoneda <[email protected]>
Co-authored-by: Erica Hughberg <[email protected]>
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