mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[rubygems/rubygems] Use default value for expiration in the method signature
https://github.com/rubygems/rubygems/commit/1372e50c17
This commit is contained in:
parent
aa9015dd84
commit
74419711ad
1 changed files with 1 additions and 3 deletions
|
@ -39,9 +39,7 @@ class Gem::S3URISigner
|
|||
|
||||
##
|
||||
# Signs S3 URI using query-params according to the reference: https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html
|
||||
def sign(expiration = nil)
|
||||
expiration ||= 86400
|
||||
|
||||
def sign(expiration = 86400)
|
||||
s3_config = fetch_s3_config
|
||||
|
||||
current_time = Time.now.utc
|
||||
|
|
Loading…
Add table
Reference in a new issue