Permalink
Browse files

Merge pull request #1 from zamotivator/request_http_version_fix

Accomodate for cowboy_client http_version changes
  • Loading branch information...
2 parents dc3e489 + 31002c0 commit 35927902341f2d79253b532983688593b9bc3ede @dvv committed May 18, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/cowboy_request.erl
View
@@ -21,15 +21,15 @@
timeout = 5000 :: timeout(), %% @todo Configurable.
buffer = <<>> :: binary(),
connection = keepalive :: keepalive | close,
- version = {1, 1} :: cowboy_http:version(),
+ version = 'HTTP/1.1' :: cowboy_http:version(),
response_body = undefined :: undefined | non_neg_integer()
}).
request(Method, URL, Headers, Body) ->
% pecypc_log:info({req, Method, URL, Body}),
{ok, Client0} = cowboy_client:init([]),
% NB: have to degrade protocol to not allow chunked responses
- Client = Client0#client{version = {1, 0}},
+ Client = Client0#client{version = 'HTTP/1.0'},
{ok, Client2} = cowboy_client:request(Method, URL, [
{<<"connection">>, <<"close">>},
{<<"accept-encoding">>, <<"identity">>},

0 comments on commit 3592790

Please sign in to comment.