)]}'
{
  "commit": "2296c698ec89ebd9836b76525b5b550bd988b748",
  "tree": "61cdd4823536103fd17e617bfe42b128fb3c742c",
  "parents": [
    "a001fe286ce205ae829e9d1a5ff1fee48e6d2db4"
  ],
  "author": {
    "name": "Maxim Dounin",
    "email": "mdounin@mdounin.ru",
    "time": "Thu Jan 11 21:43:49 2018 +0300"
  },
  "committer": {
    "name": "Maxim Dounin",
    "email": "mdounin@mdounin.ru",
    "time": "Thu Jan 11 21:43:49 2018 +0300"
  },
  "message": "Upstream: fixed \"header already sent\" alerts on backend errors.\n\nFollowing ad3f342f14ba046c (1.9.13), it is possible that a request where\nheader was already sent will be finalized with NGX_HTTP_BAD_GATEWAY,\ntriggering an attempt to return additional error response and the\n\"header already sent\" alert as a result.\n\nIn particular, it is trivial to reproduce the problem with a HEAD request\nand caching enabled.  With caching enabled nginx will change HEAD to GET\nand will set u-\u003epipe-\u003edownstream_error to suppress sending the response\nbody to the client.  When a backend-related error occurs (for example,\nproxy_read_timeout expires), ngx_http_finalize_upstream_request() will\nbe called with NGX_HTTP_BAD_GATEWAY.  After ad3f342f14ba046c this will\nresult in ngx_http_finalize_request(NGX_HTTP_BAD_GATEWAY).\n\nFix is to move u-\u003epipe-\u003edownstream_error handling to a later point,\nwhere all special response codes are changed to NGX_ERROR.\n\nReported by Jan Prachar,\nhttp://mailman.nginx.org/pipermail/nginx-devel/2018-January/010737.html.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "f8d5707d3d34cd195076840c7b19f5432731716f",
      "old_mode": 33188,
      "old_path": "src/http/ngx_http_upstream.c",
      "new_id": "736ab6349df311905041672732ea2a8912832107",
      "new_mode": 33188,
      "new_path": "src/http/ngx_http_upstream.c"
    }
  ]
}
