summaryrefslogtreecommitdiff
path: root/lib/chef/http
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-03-14 11:53:05 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2016-03-14 11:53:05 -0700
commitc031a6182bef7f689b2d80f418ae1b80669168a3 (patch)
tree627f24bc48fd352dd82a1588a514349c5924d9eb /lib/chef/http
parent365064280c93d519fdacbf032c0c21057e5549c9 (diff)
downloadchef-c031a6182bef7f689b2d80f418ae1b80669168a3.tar.gz
fix some UselessAssignment caseslcg/useless-assignment
Diffstat (limited to 'lib/chef/http')
-rw-r--r--lib/chef/http/validate_content_length.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/chef/http/validate_content_length.rb b/lib/chef/http/validate_content_length.rb
index 81d3b0fb74..c1073867d3 100644
--- a/lib/chef/http/validate_content_length.rb
+++ b/lib/chef/http/validate_content_length.rb
@@ -84,7 +84,6 @@ class Chef
def validate(http_response, response_length)
content_length = response_content_length(http_response)
transfer_encoding = http_response["transfer-encoding"]
- content_encoding = http_response["content-encoding"]
if content_length.nil?
Chef::Log.debug "HTTP server did not include a Content-Length header in response, cannot identify truncated downloads."