Permalink
Browse files

Drop bogus user-agent header.

  • Loading branch information...
1 parent f8ad7ee commit 2d6fa82d1c84537395e45dcc050f858376d685e5 @archaelus archaelus committed Jun 8, 2012
Showing with 1 addition and 4 deletions.
  1. +1 −4 src/cowboy_client.erl
View
@@ -101,10 +101,7 @@ request(Method, URL, Headers, Body, Client=#client{
end,
VersionBin = cowboy_http:version_to_binary(Version),
%% @todo do keepalive too, allow override...
- Headers2 = [
- {<<"host">>, FullHost},
- {<<"user-agent">>, <<"Cow">>}
- |Headers],
+ Headers2 = [{<<"host">>, FullHost} | Headers],
Headers3 = case iolist_size(Body) of
0 -> Headers2;
Length -> [{<<"content-length">>, integer_to_list(Length)}|Headers2]

0 comments on commit 2d6fa82

Please sign in to comment.