urllib doesn't respect macOS bypass proxy rules if URL contains port
未關閉
還沒有人認領這個 Issue。
stdlib
type-bug
- 主要語言
- Python
- 星號
- 77.2k
- 分支
- 35.9k
- PR 合併指標
- PR 指標待擷取
描述
Bug report
Bug description:
If macOS proxy bypass system configuration contains *.example.com rule,
urllib.request.urlopen("https://www.example.com/") request is not redirected to the proxy but urllib.request.urlopen("https://www.example.com:443/") is redirected.
CPython versions tested on:
3.13
Operating systems tested on:
macOS
Linked PRs
- gh-132672
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
首先,在 macOS 上使用針對 *.example.com 的 Proxy bypass 規則,重現兩次 urllib.request.urlopen 呼叫,然後追蹤 urllib 對帶有和不帶有明確連接埠的 URL 之 Proxy 處理。完成的標準是兩種 URL 形式都一致地遵循 macOS 的 bypass 設定;issue 內文不指定任何特定檔案或測試。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- networking
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100