0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 20:30:23 +00:00

Remove a redundant function

This commit is contained in:
Loïc Hoguin 2012-09-29 15:06:33 +02:00
parent 1f6c324c3f
commit 0e01b82046

View file

@ -1134,15 +1134,13 @@ response_connection([], Connection) ->
Connection; Connection;
response_connection([{Name, Value}|Tail], Connection) -> response_connection([{Name, Value}|Tail], Connection) ->
case Name of case Name of
<<"connection">> -> response_connection_parse(Value); <<"connection">> ->
_ -> response_connection(Tail, Connection) Tokens = parse_connection_before(Value, []),
connection_to_atom(Tokens);
_ ->
response_connection(Tail, Connection)
end. end.
-spec response_connection_parse(binary()) -> keepalive | close.
response_connection_parse(ReplyConn) ->
Tokens = cowboy_http:nonempty_list(ReplyConn, fun cowboy_http:token/2),
connection_to_atom(Tokens).
-spec response_merge_headers(cowboy_http:headers(), cowboy_http:headers(), -spec response_merge_headers(cowboy_http:headers(), cowboy_http:headers(),
cowboy_http:headers()) -> cowboy_http:headers(). cowboy_http:headers()) -> cowboy_http:headers().
response_merge_headers(Headers, RespHeaders, DefaultHeaders) -> response_merge_headers(Headers, RespHeaders, DefaultHeaders) ->