Skip to content

Commit

Permalink
Remove a redundant function
Browse files Browse the repository at this point in the history
  • Loading branch information
essen committed Sep 29, 2012
1 parent 1f6c324 commit 0e01b82
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/cowboy_req.erl
Expand Up @@ -1134,15 +1134,13 @@ response_connection([], Connection) ->
Connection;
response_connection([{Name, Value}|Tail], Connection) ->
case Name of
<<"connection">> -> response_connection_parse(Value);
_ -> response_connection(Tail, Connection)
<<"connection">> ->
Tokens = parse_connection_before(Value, []),
connection_to_atom(Tokens);
_ ->
response_connection(Tail, Connection)
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(),
cowboy_http:headers()) -> cowboy_http:headers().
response_merge_headers(Headers, RespHeaders, DefaultHeaders) ->
Expand Down

0 comments on commit 0e01b82

Please sign in to comment.