Commits

Anonymous committed 13d1a6e

let mochiweb know that we received body

  • Participants
  • Parent commits eb93f07

Comments (0)

Files changed (2)

File apps/webmachine/src/webmachine_decision_core.erl

 -include("webmachine_logger.hrl").
 
 handle_request(Resource, ReqState) ->
+    [erase(X) || X <- [decision, code, req_body, bytes_written, tmp_reqstate]],
     put(resource, Resource),
     put(reqstate, ReqState),
     try

File apps/webmachine/src/webmachine_request.erl

     end.
 
 recv_stream_body(PassedState=#wm_reqstate{reqdata=RD}, MaxHunkSize) ->
+    put(mochiweb_request_recv, true),
     case get_header_value("expect") of
 	{"100-continue", _} ->
 	    send(PassedState#wm_reqstate.socket,