Skip to content

Conversation

@jnunemaker
Copy link
Owner

Added logic to automatically set the Content-Type to 'application/x-www-form-urlencoded' when the request body is a Hash and no Content-Type is specified. Updated tests to verify this behavior and ensure that provided Content-Types are not overwritten.

refs [Informative] net-http 0.7.0 indirectly breaks HTTParty - default content-type removed. Fixes #826

Added logic to automatically set the Content-Type to 'application/x-www-form-urlencoded' when the request body is a Hash and no Content-Type is specified. Updated tests to verify this behavior and ensure that provided Content-Types are not overwritten.

refs [Informative] net-http 0.7.0 indirectly breaks HTTParty - default content-type removed.
Fixes #826
@jnunemaker jnunemaker self-assigned this Dec 18, 2025
@jnunemaker jnunemaker merged commit 091bd6a into main Dec 23, 2025
12 checks passed
razumau added a commit to chgk-gg/rating-ui that referenced this pull request Jan 6, 2026
The issue fixed in jnunemaker/httparty#828 broke posting message to Telegram channel
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.

[Informative] net-http 0.7.0 indirectly breaks HTTParty - default content-type removed.

1 participant