Skip to content

Commit

Permalink
fix error when header key is binary
Browse files Browse the repository at this point in the history
  • Loading branch information
Minsu Choi committed Oct 5, 2012
1 parent c9c722a commit c4a8c4d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ibrowse_http_client.erl
Expand Up @@ -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,
Expand Down

0 comments on commit c4a8c4d

Please sign in to comment.