Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix Cowboy's request_body
  • Loading branch information
choptastic committed Jan 27, 2015
1 parent d921a77 commit ebd87cb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/cowboy_bridge_modules/cowboy_simple_bridge.erl
Expand Up @@ -108,9 +108,8 @@ query_params(ReqKey) ->
QsVals.

post_params(ReqKey) ->
{RequestCache, Req} = get_key(ReqKey),
{ok, BodyQs, NewReq} = cowboy_req:body_qs(Req, [{length, 2000000}]),
put_key(ReqKey, RequestCache#request_cache{request = NewReq}),
Body = request_body(ReqKey),
BodyQs = cow_qs:parse_qs(Body),
BodyQs.

request_body(ReqKey) ->
Expand Down

0 comments on commit ebd87cb

Please sign in to comment.