Skip to content

Commit

Permalink
Fix cookie lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
choptastic committed Nov 4, 2014
1 parent 806ecc0 commit 26b5194
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sbw.erl
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ cookies(Wrapper) ->
Wrapper#sbw.cookies.

cookie(Cookie, Wrapper) ->
BinCookie = simple_bridge_util:binarize_header(Cookie),
BinCookie = list_to_binary(string:to_lower(simple_bridge_util:to_list(Cookie))),
case lists:keyfind(BinCookie, 1, Wrapper#sbw.cookies) of
false -> undefined;
{_, Val} ->
Expand Down

0 comments on commit 26b5194

Please sign in to comment.