)]}'
{
  "commit": "57f9a589b5dfd9635879e85cd1c2937441368989",
  "tree": "f2d722452cf6527c43b8a389af073b079cba4774",
  "parents": [
    "40f0f8125549b511e41607712acb0435ce07d060"
  ],
  "author": {
    "name": "Nicholas S. Husin",
    "email": "nsh@golang.org",
    "time": "Sun Jun 21 10:59:03 2026 -0400"
  },
  "committer": {
    "name": "Nicholas Husin",
    "email": "nsh@golang.org",
    "time": "Mon Jun 22 17:19:51 2026 -0700"
  },
  "message": "net/http: preserve path escaping in redirects\n\nCurrently, when performing path sanitization and trailing-slash\nredirects, we do not populate the RawPath field of the returned URL. As\na result, when a URL path is already escaped, our redirect behavior can\nbe rather surprising:\n\n- When \"/a//b%2fc\" is sanitized, it is double-escaped, becoming\n  \"/a/b/%252fc\".\n- When doing trailing slash-redirect, \"/a%2fb\" will lose its escaping,\n  becoming \"/a/b/\" instead of \"/a%2fb/\".\n\nFix this by populating the RawPath field.\n\nAlso updated TestServeWithSlashRedirectForHostPatterns that still uses\nthe old 301 status code rather than 307 after CL 720820.\n\nFixes #79897\n\nChange-Id: Ibdd1f119afdd6824e52185be3852234a6a6a6964\nReviewed-on: https://go-review.googlesource.com/c/go/+/792860\nLUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com \u003cgolang-scoped@luci-project-accounts.iam.gserviceaccount.com\u003e\nReviewed-by: Damien Neil \u003cdneil@google.com\u003e\nReviewed-by: Nicholas Husin \u003chusin@google.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "7e8398485ab4df0108174bb00c7aebc6f56fb3c2",
      "old_mode": 33188,
      "old_path": "src/net/http/serve_test.go",
      "new_id": "f8710afd0bb0dff3c4f54898ea75f21098b0deaa",
      "new_mode": 33188,
      "new_path": "src/net/http/serve_test.go"
    },
    {
      "type": "modify",
      "old_id": "933dcc95f26a08c6ef498e405a29788d712cf3f1",
      "old_mode": 33188,
      "old_path": "src/net/http/server.go",
      "new_id": "1ef5621cec2decd8b2ee95580571e3f926dca0d6",
      "new_mode": 33188,
      "new_path": "src/net/http/server.go"
    }
  ]
}
