Files
gerrit/gerrit-httpd
Shawn Pearce e40b1a436b Fix REST API responses for 3xx and 4xx classes
Error replies were crashing with NullPointerException while checking
if the request method was HEAD. Some error paths do not pass in the
HttpServletRequest, which means the response code cannot check and
avoid writing the body.

Pass in the request in one more location, and assume the body must
be written if the request was not supplied. The servlet container
should gracefully discard the body if the request really was HEAD.

Change-Id: I8f0daf06727fd94c4be4d9d8019686ee4c1bac17
2014-04-28 10:11:48 -07:00
..
2014-03-07 18:14:09 +00:00