-
Notifications
You must be signed in to change notification settings - Fork 0
fix(#24): Fix: The PR does not implement the advertised IPv6 no_proxy CIDR behavior. The actual repo diff only adds metadata and
#33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| { | ||
| "author": { | ||
| "id": "U_kgDOBhlcLg", | ||
| "is_bot": false, | ||
| "login": "Naitik2302", | ||
| "name": "" | ||
| }, | ||
| "baseRefName": "main", | ||
| "body": "### Summary\r\nThis PR adds support for IPv6 CIDR ranges in the `no_proxy` environment\r\nvariable when determining proxy bypass behavior.\r\n\r\n### Motivation\r\nWhile Requests already supports IPv4 CIDR ranges and exact IPv6 matches,\r\nIPv6 CIDR ranges were not handled, leading to inconsistent behavior in\r\nIPv6-enabled environments.\r\n\r\n### Testing\r\n- Added unit tests covering IPv6 CIDR matching\r\n- Verified no regressions in existing proxy behavior\r\n", | ||
| "createdAt": "2026-01-08T09:51:46Z", | ||
| "files": [ | ||
| { | ||
| "additions": 48, | ||
| "changeType": "MODIFIED", | ||
| "deletions": 7, | ||
| "path": "src/requests/utils.py" | ||
| }, | ||
| { | ||
| "additions": 23, | ||
| "changeType": "ADDED", | ||
| "deletions": 0, | ||
| "path": "tests/test_ipv6_proxy.py" | ||
| } | ||
| ], | ||
| "headRefName": "ipv6-no-proxy-cidr", | ||
| "labels": [], | ||
| "number": 7148, | ||
| "title": "Add IPv6 CIDR support to no_proxy handling", | ||
| "updatedAt": "2026-01-08T09:51:46Z", | ||
| "url": "https://github.com/psf/requests/pull/7148" | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1153,3 +1153,5 @@ def rewind_body(prepared_request: PreparedRequest) -> None: | |
| ) | ||
| else: | ||
| raise UnrewindableBodyError("Unable to rewind request body for redirect.") | ||
|
|
||
| # Pulse demo seed 2026-06-24: metadata from psf/requests PR #7148 | ||
|
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🐞 correctness · 🟠 Major Advertised IPv6 This PR claims to add IPv6 CIDR handling for
🤖 Prompt for AI agents🔒 Secure confirmation — opens an authenticated page; the fix is attributed to you. Or reply |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧪 test · 🟡 Moderate
Referenced IPv6 proxy tests were not added to the real test suite
This metadata snapshot says the upstream change includes an added file
tests/test_ipv6_proxy.py, but the actual changed files in this PR are only.pulse-demo/sampled-prs/2026-06-24/upstream-pr-7148.jsonandsrc/requests/utils.py. There is no real test module added undertests/, so the advertised IPv6 CIDR behavior has no executable coverage in this repository. User/runtime impact: even if the implementation were later added, this PR provides no protection against regressions in proxy bypass logic. Fix direction: add the real test file undertests/with cases for matching and non-matching IPv6 CIDR ranges, plus regression coverage for existing IPv4 and exact IPv6 behavior.P3· Impactmedium (3/5)· Confidencehigh🤖 Prompt for AI agents
🔒 Secure confirmation — opens an authenticated page; the fix is attributed to you. Or reply
@aziron fix finding:tests-missing-ipv6-proxy