cfoundry 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/cfoundry/baseclient.rb +5 -3
- data/lib/cfoundry/version.rb +1 -1
- metadata +3 -3
data/lib/cfoundry/baseclient.rb
CHANGED
|
@@ -130,9 +130,11 @@ module CFoundry
|
|
|
130
130
|
sane_headers(response)
|
|
131
131
|
elsif return_response
|
|
132
132
|
response
|
|
133
|
-
elsif
|
|
134
|
-
|
|
135
|
-
|
|
133
|
+
elsif response.is_a?(Net::HTTPRedirection)
|
|
134
|
+
request_uri(
|
|
135
|
+
URI.parse(response["location"]),
|
|
136
|
+
Net::HTTP::Get,
|
|
137
|
+
original_options)
|
|
136
138
|
else
|
|
137
139
|
handle_response(response, accept)
|
|
138
140
|
end
|
data/lib/cfoundry/version.rb
CHANGED
metadata
CHANGED