Skip to content

Commit 25ee6fc

Browse files
committed
apparently it complains
1 parent d0c9457 commit 25ee6fc

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/hackney.erl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ cancel_request(Ref) ->
9292

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

972969
parse_options([], State) ->
973970
State;
974-
parse_options([compress | Rest], State = #client{headers=Headers}) ->
975-
Headers2 = hackney_headers:store(<<"accept-encoding">>, <<"gzip, deflate">>, Headers),
976-
parse_options(Rest, State#client{headers=Headers2});
977971
parse_options([async | Rest], State) ->
978972
parse_options(Rest, State#client{async=true});
979973
parse_options([{async, Async} | Rest], State) ->

0 commit comments

Comments
 (0)