Skip to content

Fix infinite buffering of SSE responses when gzip is enabled#739

Merged
aaronhurt merged 1 commit into
fabiolb:masterfrom
ctlajoie:master
Jan 27, 2020
Merged

Fix infinite buffering of SSE responses when gzip is enabled#739
aaronhurt merged 1 commit into
fabiolb:masterfrom
ctlajoie:master

Conversation

@ctlajoie

Copy link
Copy Markdown
Contributor

SSE requests (text/event-stream) don't work properly (no events are transmitted to the client) if proxy.gzip.contenttype is non-nil and gzip is in the Accept-Encoding header, because under those conditions the response gets chained through GzipResponseWriter even if no compression is being done. This change will bypass the GzipResponseWriter if there is a Accept: text/event-stream header.

@aaronhurt aaronhurt closed this Jan 27, 2020
@aaronhurt aaronhurt reopened this Jan 27, 2020
@aaronhurt

Copy link
Copy Markdown
Member

Triggering a rebuild now that Travis is functional again.

@aaronhurt aaronhurt merged commit 2e79b5a into fabiolb:master Jan 27, 2020
@aaronhurt

Copy link
Copy Markdown
Member

@ctlajoie Thank you! Sorry again for the delay.

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