Skip to content

Commit

Permalink
Use the digest method to calculate the integrity
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelfranca committed Jun 5, 2020
1 parent 9129f5e commit 32c10b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sprockets/asset.rb
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def base64digest

# Public: A "named information" URL for subresource integrity.
def integrity
DigestUtils.integrity_uri(metadata[:digest])
DigestUtils.integrity_uri(digest)
end

# Public: Add enumerator to allow `Asset` instances to be used as Rack
Expand Down

0 comments on commit 32c10b6

Please sign in to comment.