summaryrefslogtreecommitdiff
path: root/lib/chef/http.rb
diff options
context:
space:
mode:
authorSerdar Sutay <serdar@opscode.com>2014-10-10 13:30:01 -0700
committerSerdar Sutay <serdar@opscode.com>2014-10-10 13:30:01 -0700
commit69b3c83c3fed6fb18855c44854c2de90eccf2259 (patch)
treeb621e71ec101441a2dc4d95a281348b3385d7159 /lib/chef/http.rb
parent937a0394a1a3749bacebaee23f2bdd103e38991e (diff)
parentbb5a655942e9cb9168c68921ca8ccd1dbbecc988 (diff)
downloadchef-69b3c83c3fed6fb18855c44854c2de90eccf2259.tar.gz
Merge pull request #1827 from svanharmelen/fix-redirect-bug
Fix a bug when receiving a relative redirect location
Diffstat (limited to 'lib/chef/http.rb')
-rw-r--r--lib/chef/http.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/http.rb b/lib/chef/http.rb
index 7f2d00157b..ee951bd675 100644
--- a/lib/chef/http.rb
+++ b/lib/chef/http.rb
@@ -271,7 +271,7 @@ class Chef
elsif redirect_location = redirected_to(response)
if [:GET, :HEAD].include?(method)
follow_redirect do
- send_http_request(method, create_url(redirect_location), headers, body, &response_handler)
+ send_http_request(method, url+redirect_location, headers, body, &response_handler)
end
else
raise Exceptions::InvalidRedirect, "#{method} request was redirected from #{url} to #{redirect_location}. Only GET and HEAD support redirects."