@@ -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
972969parse_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 });
977971parse_options ([async | Rest ], State ) ->
978972 parse_options (Rest , State # client {async = true });
979973parse_options ([{async , Async } | Rest ], State ) ->
0 commit comments