Source

riak jiak.py client_id / apps / webmachine / src / webmachine_error_handler.erl

Diff from to

apps/webmachine/src/webmachine_error_handler.erl

 render_error(Code, Req, Reason) ->
     case Req:has_response_body() of
         {true,_} -> Req:response_body();
-        {false,_} -> render_error_body(Code, Req, Reason)
+        {false,_} -> render_error_body(Code, Req:trim_state(), Reason)
     end.
 
 render_error_body(404, Req, _Reason) ->