exvo-auth 0.7.14 → 0.7.15

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.14
1
+ 0.7.15
data/exvo-auth.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{exvo-auth}
8
- s.version = "0.7.14"
8
+ s.version = "0.7.15"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jacek Becela"]
@@ -7,8 +7,11 @@ module ExvoAuth::Autonomous::Http
7
7
  http.post(*args)
8
8
  end
9
9
 
10
- def put(*args)
11
- http.put(*args)
10
+ def put(path, options = {})
11
+ # This fixes 411 responses from nginx (on heroku)
12
+ # when Content-Length is missing on put requests.
13
+ options[:body] ||= ""
14
+ http.put(path, options)
12
15
  end
13
16
 
14
17
  def delete(*args)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 7
8
- - 14
9
- version: 0.7.14
8
+ - 15
9
+ version: 0.7.15
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jacek Becela