okay it *actually* works now

This commit is contained in:
Essem 2023-07-06 21:02:16 -05:00
parent ddabbbb199
commit fca73c6e53
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C

View file

@ -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