summaryrefslogtreecommitdiff
path: root/lib/chef/http/http_request.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/http/http_request.rb')
-rw-r--r--lib/chef/http/http_request.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/http/http_request.rb b/lib/chef/http/http_request.rb
index a1ef9b9ee2..6cd7dda251 100644
--- a/lib/chef/http/http_request.rb
+++ b/lib/chef/http/http_request.rb
@@ -169,7 +169,7 @@ class Chef
raise ArgumentError, "You must provide :GET, :PUT, :POST, :DELETE or :HEAD as the method"
end
- @http_request.body = request_body if (request_body && @http_request.request_body_permitted?)
+ @http_request.body = request_body if request_body && @http_request.request_body_permitted?
# Optionally handle HTTP Basic Authentication
if url.user
user = URI.unescape(url.user)