Releases: jnunemaker/httparty
Releases · jnunemaker/httparty
v0.24.2
Full Changelog: v0.24.1...v0.24.2
Bug Fixes
- Streaming uploads are now opt-in - The streaming multipart upload feature introduced in 0.24.0 caused compatibility issues with some servers (returning 400 errors). Streaming is now disabled by default to preserve backwards compatibility. Enable it explicitly with stream_body: true for memory-efficient large file uploads. (#832)
Example
# Default behavior (buffered, compatible with all servers)
HTTParty.post('http://example.com/upload', body: { file: File.open('large.zip') })
# Opt-in to streaming for large files (reduced memory usage)
HTTParty.post('http://example.com/upload', body: { file: File.open('large.zip') }, stream_body: true)v0.24.1
What's Changed
- Add trailing clrf when building header for non-file parts. by @serixscorpio in #833
New Contributors
- @serixscorpio made their first contribution in #833
Full Changelog: v0.24.0...v0.24.1
v0.24.0
What's Changed
- Force binary encoding throughout by @jnunemaker in #823
- set Content-Type for Hash body in requests by @jnunemaker in #828
- feat: stream multipart file uploads to reduce memory usage by @jnunemaker in #829
- fix: prevent SSRF via absolute URL bypassing base_uri by @jnunemaker in #830
Full Changelog: v0.23.2...v0.24.0
0.23.2
What's Changed
- Add changelog_uri metadata to gemspec by @baraidrissa in #817
- Fix multipart with files in binary mode and fields including non-ASCII characters by @rdimartino in #822
New Contributors
- @baraidrissa made their first contribution in #817
- @rdimartino made their first contribution in #822
Full Changelog: v0.23.1...v0.23.2
v0.23.1
- Add foul option to class level d268387
Full Changelog: v0.23.0...v0.23.1
v0.23.0
What's Changed
- new: foul mode to rescue all common network errors: https://github.com/jnunemaker/httparty/blob/891a4a8093afd4cacecab2719223e3170d07f1c0/examples/party_foul_mode.rb
- docs: replace master branch to main for better view by @bestony in #803
- Update README.md by @tradesmanhelix in #811
New Contributors
- @ashishra0 made their first contribution with foul mode
- @bestony made their first contribution in #803
- @tradesmanhelix made their first contribution in #811
Full Changelog: v0.22.0...v0.23.0
v0.22.0
What's Changed
- Fix typo in example name by @xymbol in #780
- Extract request building method by @aliismayilov in #786
- CI: Tell dependabot to update GH Actions by @olleolleolle in #791
- Add CSV gem as a dependency for Ruby 3.4 by @ngan in #796
- Clear body when redirecting to a GET by @rhett-inbox in #783
- CI against Ruby 3.3 by @y-yagi in #798
- Bump actions/checkout from 3 to 4 by @dependabot in #792
- Allow regexpr on raise errors. by @ryanfox1985 in #778
- Avoid anonymous eval by @casperisfine in #776
- Lazy load some gems by @orgads in #760
- Redirect with authorization credentials to same host for relative paths by @jasonheecs in #700
- Drop old ruby support by @jnunemaker in #799
New Contributors
- @aliismayilov made their first contribution in #786
- @ngan made their first contribution in #796
- @rhett-inbox made their first contribution in #783
- @y-yagi made their first contribution in #798
- @dependabot made their first contribution in #792
- @ryanfox1985 made their first contribution in #778
- @casperisfine made their first contribution in #776
- @jasonheecs made their first contribution in #700
Full Changelog: v0.21.0...v0.22.0
v0.17.3
Bump version to 0.17.3
v0.17.2
Bump version to 0.17.2