dav4rack 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -71,6 +71,7 @@ module DAV4Rack
71
71
  resource.lock_check
72
72
  status = resource.put(request, response)
73
73
  response['Location'] = "#{scheme}://#{host}:#{port}#{resource.public_path}" if status == Created
74
+ response.body = response['Location']
74
75
  status
75
76
  end
76
77
 
@@ -40,7 +40,7 @@ module DAV4Rack
40
40
  # enumerable, however.
41
41
 
42
42
  response['Content-Length'] = response.body.to_s.length unless response['Content-Length'] || !response.body.is_a?(String)
43
- response.body = [response.body] if not response.body.respond_to? :each
43
+ response.body = [response.body] unless response.body.respond_to? :each
44
44
  response.status = response.status ? response.status.to_i : 200
45
45
  response.headers.keys.each{|k| response.headers[k] = response[k].to_s}
46
46
 
@@ -13,5 +13,5 @@ module DAV4Rack
13
13
  end
14
14
  end
15
15
 
16
- VERSION = Version.new('0.2.6')
16
+ VERSION = Version.new('0.2.7')
17
17
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dav4rack
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 6
10
- version: 0.2.6
9
+ - 7
10
+ version: 0.2.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Chris Roberts