)]}'
{
  "commit": "9f52b443c002cccfb54bda0706a9276b6b4a109d",
  "tree": "9c55e7a2394e588a05d7cff7ac99de0f8eb952cf",
  "parents": [
    "2514548b1e6992d16afb3050a958d252457c47e3"
  ],
  "author": {
    "name": "blago1",
    "email": "74470460+danilablagorodniy37@users.noreply.github.com",
    "time": "Wed Oct 14 12:50:35 2026"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Wed Oct 14 12:50:35 2026"
  },
  "message": "gh-150751: Ignore optional whitespace around Content-Length in http.client (GH-159156)\n\ngh-150752 started validating the Content-Length value against the\nRFC 9112 grammar (1*DIGIT), but the compat32 header parser keeps\ntrailing SP/HTAB in the field value, so \"Content-Length: 5 \" is now\ntreated as a missing header. HTTPResponse then assumes that the\nconnection will close and read() blocks until the server closes it,\nwhich never happens on a keep-alive connection.\n\nRFC 9112, section 5.1 says that optional whitespace around a field\nvalue is excluded by parsers. Strip SP/HTAB before the grammar check;\nvalues such as \"+5\", \"5_0\" and \"5 0\" are still rejected.",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "f13eb6d91b77f6fa69fa02e974d610d3652d99b1",
      "old_mode": 33188,
      "old_path": "Lib/http/client.py",
      "new_id": "21484b835a08ff9458b36c7182c7d728308904de",
      "new_mode": 33188,
      "new_path": "Lib/http/client.py"
    },
    {
      "type": "modify",
      "old_id": "5fd4e8fca30fcf5c8ece4a7324d93159a00af38a",
      "old_mode": 33188,
      "old_path": "Lib/test/test_httplib.py",
      "new_id": "1e5ec0d4e43c27171e35f43e0975f5c7f453e898",
      "new_mode": 33188,
      "new_path": "Lib/test/test_httplib.py"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "40c8d606aa67734a5aca785c28f1f02fb75fe638",
      "new_mode": 33188,
      "new_path": "Misc/NEWS.d/next/Library/2026-10-10-22-14-22.gh-issue-150751.JInuGL.rst"
    }
  ]
}
