Minor change to case-insensitive regex for s3_presigned_url?

This commit is contained in:
Martin Brennan 2020-02-03 14:22:35 +10:00
parent 5b03f35614
commit 5f1749a1c0
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ class UrlHelper
end
def self.s3_presigned_url?(url)
(url.downcase =~ /x-amz-algorithm|x-amz-credential/).present?
url[/x-amz-(algorithm|credential)/i].present?
end
def self.cook_url(url, secure: false)