aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_protocol.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2012-09-17 00:48:11 +0200
committerLoïc Hoguin <[email protected]>2012-09-17 13:57:28 +0200
commite55ec7d43d6c06131afe61c8087ca9af97db35fe (patch)
treeccaa9db8003587bb5619959fddd42f66cb769fc1 /src/cowboy_protocol.erl
parentc1dd5b5176813d048654c66550a434ef30f96908 (diff)
downloadcowboy-e55ec7d43d6c06131afe61c8087ca9af97db35fe.tar.gz
cowboy-e55ec7d43d6c06131afe61c8087ca9af97db35fe.tar.bz2
cowboy-e55ec7d43d6c06131afe61c8087ca9af97db35fe.zip
Add the private get_resp_state/1 function used by cowboy_protocol
Diffstat (limited to 'src/cowboy_protocol.erl')
-rw-r--r--src/cowboy_protocol.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cowboy_protocol.erl b/src/cowboy_protocol.erl
index 9042117..868bf22 100644
--- a/src/cowboy_protocol.erl
+++ b/src/cowboy_protocol.erl
@@ -233,7 +233,7 @@ onrequest(Req, State=#state{onrequest=undefined}) ->
dispatch(Req, State);
onrequest(Req, State=#state{onrequest=OnRequest}) ->
Req2 = OnRequest(Req),
- case Req2#http_req.resp_state of
+ case cowboy_req:get_resp_state(Req2) of
waiting -> dispatch(Req2, State);
_ -> next_request(Req2, State, ok)
end.