diff options
author | Loïc Hoguin <[email protected]> | 2012-09-16 03:51:07 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2012-09-17 13:56:58 +0200 |
commit | 8d5f8db90a10a8ca16f8f17bcb076ff4b93e9c63 (patch) | |
tree | 916b1c238ce6dea4652e7b50341c37128ba633b2 /src/cowboy_protocol.erl | |
parent | e13ab806eaadd40c72145b5783c7727f2ed88d14 (diff) | |
download | cowboy-8d5f8db90a10a8ca16f8f17bcb076ff4b93e9c63.tar.gz cowboy-8d5f8db90a10a8ca16f8f17bcb076ff4b93e9c63.tar.bz2 cowboy-8d5f8db90a10a8ca16f8f17bcb076ff4b93e9c63.zip |
Improve consistency of return types for cowboy_req API
The signature of parse_header, body_qs, multipart_data and
the set_resp_* functions has changed.
See the cowboy_req module edoc for more details.
Diffstat (limited to 'src/cowboy_protocol.erl')
-rw-r--r-- | src/cowboy_protocol.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cowboy_protocol.erl b/src/cowboy_protocol.erl index a1dbb07..04b42a5 100644 --- a/src/cowboy_protocol.erl +++ b/src/cowboy_protocol.erl @@ -212,7 +212,7 @@ header({http_header, _I, 'Connection', _R, Connection}, req_keepalive=Keepalive, max_keepalive=MaxKeepalive}) when Keepalive < MaxKeepalive -> Req2 = Req#http_req{headers=[{'Connection', Connection}|Headers]}, - {ConnTokens, Req3} + {ok, ConnTokens, Req3} = cowboy_req:parse_header('Connection', Req2), ConnAtom = cowboy_http:connection_to_atom(ConnTokens), parse_header(Req3#http_req{connection=ConnAtom}, State); |