okay it *actually* works now
This commit is contained in:
parent
ddabbbb199
commit
fca73c6e53
1 changed files with 2 additions and 2 deletions
|
@ -14,8 +14,8 @@ module RoutingHelper
|
|||
end
|
||||
|
||||
def redirect_asset_url(source)
|
||||
Request.new(:head, source).perform do |res|
|
||||
res.code == 301 ? res.headers['Location'] : source
|
||||
Request.new(:head, source, follow: false).perform do |res|
|
||||
res.code == 301 ? res.headers['location'] : source
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue