)]}'
{
  "commit": "d66647b6176282342023ff087c0a9b62502612cb",
  "tree": "4205debd901488e6ddb4e349506a2c4fec74841a",
  "parents": [
    "8378edf1772b2cb00ad601f29fbff781f6a2785f"
  ],
  "author": {
    "name": "Maxim Dounin",
    "email": "mdounin@mdounin.ru",
    "time": "Fri Sep 21 15:59:33 2018 +0300"
  },
  "committer": {
    "name": "Maxim Dounin",
    "email": "mdounin@mdounin.ru",
    "time": "Fri Sep 21 15:59:33 2018 +0300"
  },
  "message": "Rewrite: removed r-\u003eerr_status special handling (ticket #1634).\n\nTrying to look into r-\u003eerr_status in the \"return\" directive\nmakes it behave differently than real errors generated in other\nparts of the code, and is an endless source of various problems.\nThis behaviour was introduced in 726:7b71936d5299 (0.4.4) with\nthe comment \"fix: \"return\" always overrode \"error_page\" response code\".\nIt is not clear if there were any real cases this was expected to fix,\nbut there are several cases which are broken due to this change, some\npreviously fixed (4147:7f64de1cc2c0).\n\nIn ticket #1634, the problem is that when r-\u003eerr_status is set to\na non-special status code, it is not possible to return a response\nby simply returning r-\u003eerr_status.  If this is the case, the only\noption is to return script\u0027s e-\u003estatus instead.  An example\nconfiguration:\n\n    location / {\n        error_page 404 \u003d200 /err502;\n        return 404;\n    }\n\n    location \u003d /err502 {\n        return 502;\n    }\n\nAfter the change, such a configuration will properly return\nstandard 502 error, much like it happens when a 502 error is\ngenerated by proxy_pass.\n\nThis also fixes the following configuration to properly close\nconnection as clearly requested by \"return 444\":\n\n    location / {\n        error_page 404 /close;\n        return 404;\n    }\n\n    location \u003d /close {\n        return 444;\n    }\n\nPreviously, this required \"error_page 404 \u003d /close;\" to work\nas intended.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "a6f1fc820d432a90c7a5b60bb96bc400a7742592",
      "old_mode": 33188,
      "old_path": "src/http/modules/ngx_http_rewrite_module.c",
      "new_id": "3b49c455cf3f9d0ff422c8d9a51c8451f140697d",
      "new_mode": 33188,
      "new_path": "src/http/modules/ngx_http_rewrite_module.c"
    }
  ]
}
