Skip to content
Browse files

fix error when header key is binary

  • Loading branch information...
1 parent c9c722a commit c4a8c4d33e58fee2bab6146af7474360f14bd684 Minsu Choi committed Oct 5, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/ibrowse_http_client.erl
View
2 src/ibrowse_http_client.erl
@@ -878,6 +878,8 @@ make_request(Method, Headers, AbsPath, RelPath, Body, Options,
HttpVsn = http_vsn_string(get_value(http_vsn, Options, {1,1})),
Fun1 = fun({X, Y}) when is_atom(X) ->
{to_lower(atom_to_list(X)), X, Y};
+ ({X, Y}) when is_binary(X) ->
+ {to_lower(binary_to_list(X)), X, Y};
({X, Y}) when is_list(X) ->
{to_lower(X), X, Y}
end,

0 comments on commit c4a8c4d

Please sign in to comment.
Something went wrong with that request. Please try again.