)]}'
{
  "commit": "9f03afd3700cb65390b388e33eec241e4628553e",
  "tree": "c4de82b38310e1af12aa3c93a2f0f78c2e0fe64c",
  "parents": [
    "043ddefd2bc7585c967c081b179ecbf9ada4d65f"
  ],
  "author": {
    "name": "Senthil Kumaran",
    "email": "senthil@python.org",
    "time": "Wed Nov 11 22:28:10 2026"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Wed Nov 11 22:28:10 2026"
  },
  "message": "gh-51540: Let proxy auth handlers answer a 407 to CONNECT for https URLs (#161596)\n\nurllib.request could not authenticate with a proxy for an https URL\nusing ProxyBasicAuthHandler or ProxyDigestAuthHandler: http.client\nraised a plain OSError when the proxy answered the CONNECT request\nwith 407, so the http_error_407 handlers never ran.\n\n* http.client: add ProxyTunnelError, an OSError subclass carrying the\n  code, reason and headers of the proxy\u0027s response.  It holds no\n  socket and can be pickled.\n* urllib.request: do_open() passes a 407 to CONNECT on to the error\n  handlers, so the request is retried with Proxy-Authorization on the\n  CONNECT.  Other CONNECT failures still raise URLError.\n* Request.set_proxy() keeps the tunnel when a request is re-opened, so\n  the retried request still sends the path, not the absolute URL.\n* ProxyDigestAuthHandler computes the digest over the CONNECT request\n  (CONNECT host:port) when tunnelling.\n\nCo-authored-by: Claude Opus 5.5 \u003cnoreply@anthropic.com\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "055971ec21aee37852f7e9bbafcd58e60b1f6eb5",
      "old_mode": 33188,
      "old_path": "Doc/library/http.client.rst",
      "new_id": "22448c14f7a18888fac99513f2c9858723ead503",
      "new_mode": 33188,
      "new_path": "Doc/library/http.client.rst"
    },
    {
      "type": "modify",
      "old_id": "8234be98a2d659616b0a1d09c8e7306719d8bb3f",
      "old_mode": 33188,
      "old_path": "Doc/library/urllib.request.rst",
      "new_id": "c3f749774b869c0f38e562a626923c8f56c48c2b",
      "new_mode": 33188,
      "new_path": "Doc/library/urllib.request.rst"
    },
    {
      "type": "modify",
      "old_id": "4a1fb6b6b87e131bf5e90a20b6b509fe0ea7eabd",
      "old_mode": 33188,
      "old_path": "Doc/whatsnew/3.16.rst",
      "new_id": "da81d8513da99d7542b7c7e13d4ca21315d429cd",
      "new_mode": 33188,
      "new_path": "Doc/whatsnew/3.16.rst"
    },
    {
      "type": "modify",
      "old_id": "fe67d0f7963f786590e5d58b3e07891bad4720ce",
      "old_mode": 33188,
      "old_path": "Lib/http/client.py",
      "new_id": "96f266f32346ab94ef9dc69b5b5f8a2ed0cb8db8",
      "new_mode": 33188,
      "new_path": "Lib/http/client.py"
    },
    {
      "type": "modify",
      "old_id": "1e5ec0d4e43c27171e35f43e0975f5c7f453e898",
      "old_mode": 33188,
      "old_path": "Lib/test/test_httplib.py",
      "new_id": "57eedee25a89e027eb3fbe015aa4b2207685e30b",
      "new_mode": 33188,
      "new_path": "Lib/test/test_httplib.py"
    },
    {
      "type": "modify",
      "old_id": "f01b94c581e87ac40501f60fc6b1eafd75348dda",
      "old_mode": 33188,
      "old_path": "Lib/test/test_urllib2.py",
      "new_id": "a198a9de68b64f38d1e5c6a55cfa6660f30b7b46",
      "new_mode": 33188,
      "new_path": "Lib/test/test_urllib2.py"
    },
    {
      "type": "modify",
      "old_id": "da634a205c195e496e844f4dd1b09e1e786fdf2e",
      "old_mode": 33188,
      "old_path": "Lib/urllib/request.py",
      "new_id": "a5166caed586d7451dc345b13fedd46b947874bd",
      "new_mode": 33188,
      "new_path": "Lib/urllib/request.py"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "9efd6dd0cca7db7d0ac22d7ba9059b1e75fba917",
      "new_mode": 33188,
      "new_path": "Misc/NEWS.d/next/Library/2026-11-07-12-00-00.gh-issue-51540.Tunn07.rst"
    }
  ]
}
