Repository navigation
build!: Update reqwest to v0.13.1 - #998
Merged
Merged
Conversation
Co-authored-by: Daniel Szoke <[email protected]>
This fixes a failing doctest. Co-authored-by: Daniel Szoke <[email protected]> # Conflicts: # Cargo.lock
reqwest to v0.13.1reqwest to v0.13.1
lcian
approved these changes
Feb 18, 2026
Closed
1 task
Closed
3 tasks
lcian
added a commit
that referenced
this pull request
Jul 22, 2026
In #998 we upgraded `reqwest` to `0.13.x`. We moved from `reqwest/default-tls` to `reqwest/native-tls`. The two features are not exactly equivalent, as the second one additionally enables ALPN. Along with that, we enabled its `http2` feature flag, which was not enabled by default in `0.12.x`. The original author of that PR enabled `http2` as a doctest was failing. Apparently it was failing due to this bug in reqwest seanmonstar/reqwest#2927, where enabling only ALPN but not HTTP2 would cause a runtime panic, as the client still advertised HTTP 2 even though it was compiled without support for it. Enabling HTTP2 is not a problem for `sentry` itself, but it can be if an application crate uses `reqwest` (independently) + `sentry`, as upgrading `sentry` might silently enable HTTP2 on the unified `reqwest` dependency. This PR restores the previous protocol feature set by selecting `native-tls-no-alpn`, and removing `http2`. It also bumps `reqwest` to `0.13.2` to get the fix for the aforementioned bug in. Otherwise, if a user has exactly version `0.13.1` as a direct dependency, and enables ALPN but not HTTP2, the reqwest transport will run exactly into that bug, and panic. Close #1057
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Supersedes #958; see that PR's description.