aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_req.erl
diff options
context:
space:
mode:
authorAli Sabil <[email protected]>2013-04-15 18:36:33 +0200
committerAli Sabil <[email protected]>2013-06-20 13:09:13 +0200
commita63faff35efc0b7a42678e3834be3f9453fb0eda (patch)
treee1e74e3557bc84a223b2ea36296a0eeaf45c6a6c /src/cowboy_req.erl
parent47396211cf855b786b9059e86dd535162cc7f1ba (diff)
downloadcowboy-a63faff35efc0b7a42678e3834be3f9453fb0eda.tar.gz
cowboy-a63faff35efc0b7a42678e3834be3f9453fb0eda.tar.bz2
cowboy-a63faff35efc0b7a42678e3834be3f9453fb0eda.zip
Add support for the webkit deflate frame extension
Diffstat (limited to 'src/cowboy_req.erl')
-rw-r--r--src/cowboy_req.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cowboy_req.erl b/src/cowboy_req.erl
index 41b7b55..5ebcf99 100644
--- a/src/cowboy_req.erl
+++ b/src/cowboy_req.erl
@@ -460,6 +460,8 @@ parse_header(Name, Req, Default)
fun (Value) ->
cowboy_http:nonempty_list(Value, fun cowboy_http:token_ci/2)
end);
+parse_header(Name = <<"sec-websocket-extensions">>, Req, Default) ->
+ parse_header(Name, Req, Default, fun cowboy_http:parameterized_tokens/1);
parse_header(Name, Req, Default) ->
{Value, Req2} = header(Name, Req, Default),
{undefined, Value, Req2}.
@@ -1173,6 +1175,7 @@ g(port, #http_req{port=Ret}) -> Ret;
g(qs, #http_req{qs=Ret}) -> Ret;
g(qs_vals, #http_req{qs_vals=Ret}) -> Ret;
g(resp_body, #http_req{resp_body=Ret}) -> Ret;
+g(resp_compress, #http_req{resp_compress=Ret}) -> Ret;
g(resp_headers, #http_req{resp_headers=Ret}) -> Ret;
g(resp_state, #http_req{resp_state=Ret}) -> Ret;
g(socket, #http_req{socket=Ret}) -> Ret;