forked from mirrors/catstodon
Fix Style/SuperWithArgsParentheses
cop (#28174)
This commit is contained in:
parent
d83d01eb1e
commit
aa8563d43d
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
module SignedRequestHelpers
|
module SignedRequestHelpers
|
||||||
def get(path, headers: nil, sign_with: nil, **args)
|
def get(path, headers: nil, sign_with: nil, **args)
|
||||||
return super path, headers: headers, **args if sign_with.nil?
|
return super(path, headers: headers, **args) if sign_with.nil?
|
||||||
|
|
||||||
headers ||= {}
|
headers ||= {}
|
||||||
headers['Date'] = Time.now.utc.httpdate
|
headers['Date'] = Time.now.utc.httpdate
|
||||||
|
@ -16,6 +16,6 @@ module SignedRequestHelpers
|
||||||
|
|
||||||
headers['Signature'] = "keyId=\"#{key_id}\",algorithm=\"rsa-sha256\",headers=\"#{signed_headers.keys.join(' ').downcase}\",signature=\"#{signature}\""
|
headers['Signature'] = "keyId=\"#{key_id}\",algorithm=\"rsa-sha256\",headers=\"#{signed_headers.keys.join(' ').downcase}\",signature=\"#{signature}\""
|
||||||
|
|
||||||
super path, headers: headers, **args
|
super(path, headers: headers, **args)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue