|
@@ -470,7 +470,9 @@ parse_header(Name, Req, Default)
|
|
when Name =:= <<"if-modified-since">>;
|
|
when Name =:= <<"if-modified-since">>;
|
|
Name =:= <<"if-unmodified-since">> ->
|
|
Name =:= <<"if-unmodified-since">> ->
|
|
parse_header(Name, Req, Default, fun cowboy_http:http_date/1);
|
|
parse_header(Name, Req, Default, fun cowboy_http:http_date/1);
|
|
-parse_header(Name = <<"sec-websocket-protocol">>, Req, Default) ->
|
|
|
|
|
|
+parse_header(Name, Req, Default)
|
|
|
|
+ when Name =:= <<"sec-websocket-protocol">>;
|
|
|
|
+ Name =:= <<"x-forwarded-for">> ->
|
|
parse_header(Name, Req, Default,
|
|
parse_header(Name, Req, Default,
|
|
fun (Value) ->
|
|
fun (Value) ->
|
|
cowboy_http:nonempty_list(Value, fun cowboy_http:token/2)
|
|
cowboy_http:nonempty_list(Value, fun cowboy_http:token/2)
|