cfoundry 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -130,9 +130,11 @@ module CFoundry
130
130
  sane_headers(response)
131
131
  elsif return_response
132
132
  response
133
- elsif [Net::HTTP::Get, Net::HTTP::Head].include?(method) && \
134
- response.is_a?(Net::HTTPRedirection)
135
- request_uri(URI.parse(response["location"]), method, original_options)
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
@@ -1,4 +1,4 @@
1
1
  module CFoundry # :nodoc:
2
2
  # CFoundry library version number.
3
- VERSION = "0.4.1".freeze
3
+ VERSION = "0.4.2".freeze
4
4
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cfoundry
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 1
10
- version: 0.4.1
9
+ - 2
10
+ version: 0.4.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alex Suraci