Skip to content

Conversation

@szokeasaurusrex
Copy link
Member

@szokeasaurusrex szokeasaurusrex commented Jan 5, 2026

Description

Stop sending transfer encoding header. This allows us to support HTTP/2, which disallows the transfer encoding header, thereby unblocking #3057 (the dynamically-linked curl library supports HTTP/2).

Supposedly this was added to support gzipped uploads, but we manually compress files before they reach the transport layer for chunked uploads. Also, per the curl docs, this header only indicates to the server that we would like a compressed response. I am not sure that Sentry honors this header, or that it is relevant, given we don't really download large files from Sentry in the CLI.

@szokeasaurusrex szokeasaurusrex requested a review from a team as a code owner January 5, 2026 16:18
Copy link
Member Author

szokeasaurusrex commented Jan 5, 2026

### Description
Stop sending transfer encoding header. This allows us to support HTTP/2, which disallows the transfer encoding header, thereby unblocking #3057.

Supposedly this was added to support gzipped uploads, but we manually compress files before they reach the transport layer for chunked uploads. Also, per the curl docs, this header only indicates to the server that we would like a [compressed response](https://curl.se/libcurl/c/CURLOPT_TRANSFER_ENCODING.html). I am not sure that Sentry honors this header, or that it is relevant, given we don't really download large files from Sentry in the CLI.
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/transfer-encoding branch from d0141fd to 8cad066 Compare January 7, 2026 10:39
@szokeasaurusrex szokeasaurusrex requested review from lcian and vaind and removed request for vaind January 7, 2026 12:00
@szokeasaurusrex szokeasaurusrex merged commit 8cad066 into master Jan 7, 2026
26 checks passed
@szokeasaurusrex szokeasaurusrex deleted the szokeasaurusrex/transfer-encoding branch January 7, 2026 13: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.

3 participants