Skip to content

fix: do not send request body on GET/HEAD#95

Merged
woswos merged 2 commits into
masterfrom
getNoBodyProxy20260623
Jun 26, 2026
Merged

fix: do not send request body on GET/HEAD#95
woswos merged 2 commits into
masterfrom
getNoBodyProxy20260623

Conversation

@woswos

@woswos woswos commented Jun 23, 2026

Copy link
Copy Markdown
Member

GET requests carry a JSON body ({}), which makes forwarding proxies like privoxy hang. Python sends the body in a separate TCP segment that the proxy does not expect on a GET, so the response never comes back and the request times out.

Fix: only attach the default body + json content-type on body methods (POST/PUT/PATCH/DELETE).

GET requests carried a JSON body ({}), which made forwarding proxies like
privoxy hang: python sends the body in a separate TCP segment that the proxy
does not expect on a GET, so the response never comes back and the request
times out. curl and socks5h are unaffected. Scope the default body and json
content type to body methods only.

Refs work_item 1253
@woswos

woswos commented Jun 23, 2026

Copy link
Copy Markdown
Member Author

Pipeline ID: 1976699

@woswos woswos merged commit 2385a0b into master Jun 26, 2026
1 check passed
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