Skip to content

Commit

Permalink
apparently it complains
Browse files Browse the repository at this point in the history
  • Loading branch information
jimdigriz committed Nov 16, 2017
1 parent d0c9457 commit 25ee6fc
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/hackney.erl
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ cancel_request(Ref) ->

%% @doc set client options.
%% Options are:
%% - `compress': request compression and transparently decompress
%% - `async': to fetch the response asynchronously
%% - `{async, once}': to receive the response asynchronously once time.
%% To receive the next message use the function `hackney:stream_next/1'.
Expand Down Expand Up @@ -201,8 +200,6 @@ request(Method, URL, Headers, Body) ->
%% directly. The response is `{ok, Status, Headers, Body}'</li>
%% <li>`max_body': sets maximum allowed size of the body if
%% with_body is true</li>
%% <li>`compress': request that the server sends the body compressed
%% and instructs hackney to transparently decompress it</li>
%% <li>`async': receive the response asynchronously
%% The function return {ok, StreamRef}.
%% When {async, once} is used the response will be received only once. To
Expand Down Expand Up @@ -971,9 +968,6 @@ maybe_update_req(State) ->

parse_options([], State) ->
State;
parse_options([compress | Rest], State = #client{headers=Headers}) ->
Headers2 = hackney_headers:store(<<"accept-encoding">>, <<"gzip, deflate">>, Headers),
parse_options(Rest, State#client{headers=Headers2});
parse_options([async | Rest], State) ->
parse_options(Rest, State#client{async=true});
parse_options([{async, Async} | Rest], State) ->
Expand Down

0 comments on commit 25ee6fc

Please sign in to comment.