diff options
author | Loïc Hoguin <[email protected]> | 2019-10-02 19:12:05 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2019-10-02 19:12:05 +0200 |
commit | 20660d7566b63977e80f694724fee890d875ec1b (patch) | |
tree | 38cb0e24818b1c196f94636319400158c1295df2 /src/cowboy_req.erl | |
parent | 8f6ee9c1868ebc7bf31fb4846114919e164e0cf3 (diff) | |
download | cowboy-20660d7566b63977e80f694724fee890d875ec1b.tar.gz cowboy-20660d7566b63977e80f694724fee890d875ec1b.tar.bz2 cowboy-20660d7566b63977e80f694724fee890d875ec1b.zip |
Ensure we can read the request body from any process
Diffstat (limited to 'src/cowboy_req.erl')
-rw-r--r-- | src/cowboy_req.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cowboy_req.erl b/src/cowboy_req.erl index 8e64a39..b2756e3 100644 --- a/src/cowboy_req.erl +++ b/src/cowboy_req.erl @@ -491,7 +491,7 @@ read_body(Req=#{pid := Pid, streamid := StreamID}, Opts) -> Period = maps:get(period, Opts, 15000), Timeout = maps:get(timeout, Opts, Period + 1000), Ref = make_ref(), - Pid ! {{Pid, StreamID}, {read_body, Ref, Length, Period}}, + Pid ! {{Pid, StreamID}, {read_body, self(), Ref, Length, Period}}, receive {request_body, Ref, nofin, Body} -> {more, Body, Req}; |