diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2014-03-20 16:35:40 -0700 |
---|---|---|
committer | sersut <serdar@opscode.com> | 2014-03-27 15:37:26 -0700 |
commit | 12e0d2468f09ed107d240cd49b7b3f2b0e3d5dbe (patch) | |
tree | b1b563b5f7e6ce5ed0cbe7c8e18205ef427363f4 | |
parent | ce72c3d3e01700c7f3f14af22fbaef6b65486192 (diff) | |
download | chef-12e0d2468f09ed107d240cd49b7b3f2b0e3d5dbe.tar.gz |
CHEF-5100: reset state for streamed downloads
quick fix to "free" our state from one streamed download request
so that we don't pollute the state of the next streamed request.
-rw-r--r-- | lib/chef/http/validate_content_length.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/http/validate_content_length.rb b/lib/chef/http/validate_content_length.rb index 834bb023e8..88b3bc44d3 100644 --- a/lib/chef/http/validate_content_length.rb +++ b/lib/chef/http/validate_content_length.rb @@ -61,6 +61,7 @@ class Chef else validate(http_response, @content_length_counter.content_length) end + @content_length_counter = nil # XXX: quickfix to CHEF-5100 return [http_response, rest_request, return_value] end |