Skip to content

Commit

Permalink
A note for the code readers
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda committed Sep 9, 2024
1 parent 45362b4 commit c176474
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/simplecov-html.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ def assets_path(name)

def asset_inline(name)
path = File.join(@public_assets_dir, name)
# Equivalent to `Base64.strict_encode64(File.read(path))` but without depending on Base64
base64_content = [File.read(path)].pack("m0")

content_type = CONTENT_TYPES[File.extname(name)]
Expand Down

0 comments on commit c176474

Please sign in to comment.