diff options
Diffstat (limited to 'lib/chef/http.rb')
-rw-r--r-- | lib/chef/http.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/http.rb b/lib/chef/http.rb index 3f815b9eff..e9f94e6c92 100644 --- a/lib/chef/http.rb +++ b/lib/chef/http.rb @@ -152,7 +152,7 @@ class Chef response.error! unless success_response?(response) return_value - rescue Net::HTTPServerException => e + rescue Net::HTTPClientException => e http_attempts += 1 response = e.response if response.kind_of?(Net::HTTPNotAcceptable) && version_retries - http_attempts > 0 @@ -190,7 +190,7 @@ class Chef response.error! end tempfile - rescue Net::HTTPServerException => e + rescue Net::HTTPClientException => e http_attempts += 1 response = e.response if response.kind_of?(Net::HTTPNotAcceptable) && version_retries - http_attempts > 0 @@ -245,7 +245,7 @@ class Chef end end tempfile - rescue Net::HTTPServerException => e + rescue Net::HTTPClientException => e http_attempts += 1 response = e.response if response.kind_of?(Net::HTTPNotAcceptable) && version_retries - http_attempts > 0 |