Skip to content

Update httparty requirement from ~> 0.24.2 to >= 0.24.2, < 0.26.0 - #28

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/bundler/httparty-0.25.1
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/bundler/httparty-0.25.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 25, 2026

Copy link
Copy Markdown
Contributor

Updates the requirements on httparty to permit the latest version.

Release notes

Sourced from httparty's releases.

v0.25.1

Full Changelog: jnunemaker/httparty@v0.25.0...v0.25.1

This release stops credentials and cookies from following redirects to another site. Upgrading is recommended.

Security

Credentials no longer follow redirects to another origin

An Authorization header, basic_auth and digest_auth are now only sent to the same scheme, host and port they were given for, as in curl, Python requests and browsers. An http → https upgrade on the default ports keeps them. (#819, #915, thanks @​davefej)

Before, credentials could reach another server in these cases:

Redirect Authorization in headers: basic_auth
To a different host sent dropped
Scheme-relative (//other.example.com/x) sent sent
https:// → http:// on the same host sent unencrypted sent unencrypted
Same host, different port sent sent

digest_auth also answered a 401 challenge from the host it was redirected to. All of these now drop the credentials. A redirect on the same host, or an http → https upgrade, still sends them.

Cookies no longer follow redirects to another origin

Cookies from headers:, the cookies: option, class-level cookies and the previous host's Set-Cookie were sent to any host a redirect pointed at. HTTParty doesn't track the cookie Domain attribute, so on a redirect to a different scheme, host or port it now sends none of them. Cookies the new host sets are kept for its own later redirects. (#916)

If a single request relies on a Domain=.example.com cookie reaching a sibling subdomain through a redirect (say login.example.com → app.example.com), that cookie is no longer sent.

Log lines can't be forged through the request path

ApacheFormatter escapes control characters, " and \ in the request path as Apache's own access log does (\x0d\x0a), so a crafted path can't split or forge a log line. This only applies with a permissive URI adapter such as Addressable; the default adapter already rejects these characters. (#892, #914, thanks @​fuzzyrichie)

Bug Fixes

  • Cookies set by a same-origin redirect are sent along with your class and request cookies. Before, they replaced them, which could drop a session cookie on an ordinary redirect. (#916)
  • When a redirect turns a request into a GET, HTTParty no longer sends the headers that described the dropped body (Content-Type, Content-Length, Content-Encoding, Content-Language, Content-Location). (#696, #867, thanks @​wleeaf)
  • A body_stream is dropped along with the body when a redirect turns the request into a GET. Before, the GET resent the already-read stream, which raised ArgumentError or went out chunked. (#917)
  • The curl log format no longer raises on UTF-16 or UTF-7 bodies, or on a non-ASCII header or query key with a binary value. (#848, #850, thanks @​ethanstoner)
  • Responses declaring a Ruby "dummy" charset (UTF-7, UTF-32, ISO-2022-JP, IBM037) parse instead of raising Encoding::CompatibilityError. (#912)

Other

  • Gems built on Linux no longer include the spec and feature files. (#911)
  • Fixed four documentation examples that raised when run. (#913)
  • Added a cucumber scenario for relative redirects. (#918)

v0.25.0

Full Changelog: jnunemaker/httparty@v0.24.4...v0.25.0

0.25 makes request paths and redirect targets resolve the way RFC 3986, browsers, curl and other HTTP clients resolve them. Both changes alter which URL some requests go to, so check the tables below before upgrading. 0.24.4 printed a [DEPRECATION] warning for every request the first change affects.

... (truncated)

Commits
  • ecff2b1 Merge pull request #919 from jnunemaker/nunes/release-0.25.1
  • f406747 Release 0.25.1
  • 281baca Merge pull request #916 from jnunemaker/nunes/drop-cookies-on-cross-origin-re...
  • d3d015a Merge pull request #918 from jnunemaker/nunes/relative-redirect-feature
  • eff45ec Merge pull request #917 from jnunemaker/nunes/drop-body-stream-on-get-redirect
  • 75326fe Fill in the empty relative redirect scenario
  • 13f2413 Drop a body_stream when a redirect turns the request into a GET
  • 6b68740 Keep cookies with the origin they came from on redirects
  • 4d4507d Merge pull request #915 from jnunemaker/nunes/strip-auth-on-cross-origin-redi...
  • 705e08e Merge pull request #914 from jnunemaker/nunes/apache-log-escaping
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [httparty](https://github.com/jnunemaker/httparty) to permit the latest version.
- [Release notes](https://github.com/jnunemaker/httparty/releases)
- [Changelog](https://github.com/jnunemaker/httparty/blob/main/Changelog.md)
- [Commits](jnunemaker/httparty@v0.24.4...v0.25.1)

---
updated-dependencies:
- dependency-name: httparty
  dependency-version: 0.25.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file ruby Pull requests that update ruby code labels Nov 25, 2026
@coderabbitai

coderabbitai Bot commented Nov 25, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@codecov

codecov Bot commented Nov 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file ruby Pull requests that update ruby code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants