diff --git a/lib/propshaft/asset.rb b/lib/propshaft/asset.rb index 295de78c..d819f739 100644 --- a/lib/propshaft/asset.rb +++ b/lib/propshaft/asset.rb @@ -18,7 +18,7 @@ def initialize(path, logical_path:, load_path:) end def content(encoding: "ASCII-8BIT") - File.read(path, encoding: encoding) + File.read(path, encoding: encoding, mode: "rb") end def content_type