activestorage-aliyun 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/active_storage/service/aliyun_service.rb +6 -4
- data/lib/active_storage_aliyun/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bed55a80edfa6cea56565fecdbfc7c3bad58d2516981dd352c4f944e3fc4f79c
|
4
|
+
data.tar.gz: 9be8033111a8ac4292ba371bdf56858d15344dee07b522c09ddcdfa7da834700
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4c286312be492b34b44cf66d81f283a9f207b8c35c1c15754c7375a9bfc1aeeb03bcc5f03f04e6fbcf93f1807ef18cc4266c8e4611ed2075fa1722f062adfd8
|
7
|
+
data.tar.gz: f54e749f298d269c9106a899ff911fdf51785433f239f534232a259cb7eb3dce1edfe0a4d056bea65f1a852fa686693236f4472bf02d6b2c66f203578d9365ff
|
data/CHANGELOG.md
CHANGED
@@ -73,11 +73,13 @@ module ActiveStorage
|
|
73
73
|
sign = private_mode? || disposition == :attachment
|
74
74
|
filekey = path_for(key)
|
75
75
|
|
76
|
-
|
76
|
+
if sign
|
77
|
+
params["response-content-type"] = content_type unless content_type.blank?
|
77
78
|
|
78
|
-
|
79
|
-
|
80
|
-
|
79
|
+
if filename
|
80
|
+
filename = ActiveStorage::Filename.wrap(filename)
|
81
|
+
params["response-content-disposition"] = content_disposition_with(type: disposition, filename: filename)
|
82
|
+
end
|
81
83
|
end
|
82
84
|
|
83
85
|
generated_url = object_url(filekey, sign: sign, expires_in: expires_in, params: params)
|