Method: Chef::HTTP::Decompressor#handle_response
- Defined in:
- lib/chef/http/decompressor.rb
#handle_response(http_response, rest_request, return_value) ⇒ Object
63 64 65 66 67 68 69 70 71 |
# File 'lib/chef/http/decompressor.rb', line 63 def handle_response(http_response, rest_request, return_value) # temporary hack, skip processing if return_value is false # needed to keep conditional get stuff working correctly. return [http_response, rest_request, return_value] if return_value == false response_body = decompress_body(http_response) http_response.body.replace(response_body) if http_response.body.respond_to?(:replace) [http_response, rest_request, return_value] end |