radosgw-s3 0.6 → 0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/s3/connection.rb +2 -2
- data/lib/s3/service.rb +1 -1
- data/lib/s3/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 359cebe03279f2013ccf6867ded7ba76ba8ca83a
|
4
|
+
data.tar.gz: ec92ec54012013cc6e24d8d52e936388d6c5a737
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43df2d7b7e35a61b06a8742c671ac9a0d8d5063d76d063a9dc471b2bee9a332d6f7f0f4369040fed692ea76775bd14add12e6111ed62c17d5d1dea5f81d16c7b
|
7
|
+
data.tar.gz: 304cfb998921f373597e915b3d00ed19ea897b13e1f5fe1d9c5a73294c8e295c8dc58ae4a9349e59eb8057490a750aa809a1659464100002dae945bd1274a22a
|
data/lib/s3/connection.rb
CHANGED
@@ -59,7 +59,7 @@ module S3
|
|
59
59
|
body = options.fetch(:body, nil)
|
60
60
|
params = options.fetch(:params, {})
|
61
61
|
headers = options.fetch(:headers, {})
|
62
|
-
use_authsign = options.fetch(:use_authsign)
|
62
|
+
use_authsign = options.fetch(:use_authsign, false)
|
63
63
|
|
64
64
|
# Must be done before adding params
|
65
65
|
# Encodes all characters except forward-slash (/) and explicitly legal URL characters
|
@@ -182,7 +182,7 @@ module S3
|
|
182
182
|
response = http(host).start do |http|
|
183
183
|
host = http.address
|
184
184
|
|
185
|
-
request = send_authsign(request)
|
185
|
+
request = send_authsign(host, request)
|
186
186
|
|
187
187
|
http.request(request)
|
188
188
|
end
|
data/lib/s3/service.rb
CHANGED
@@ -58,7 +58,7 @@ module S3
|
|
58
58
|
|
59
59
|
# Returns the signature for POST operations done externally via javascript
|
60
60
|
def auth_sign
|
61
|
-
service_request(:post, use_authsign
|
61
|
+
service_request(:post, :use_authsign => true)
|
62
62
|
end
|
63
63
|
|
64
64
|
# Returns "http://" or "https://", depends on <tt>:use_ssl</tt>
|
data/lib/s3/version.rb
CHANGED