Skip to content

Commit 291a5c8

Browse files
committedMar 16, 2015
Ensure resolved path’s always a Pathname
1 parent e33f0d0 commit 291a5c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎lib/opal/sprockets/source_map_server.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def call(env)
100100
rescue Sprockets::FileNotFound
101101
return not_found(path_info)
102102
end
103-
return [200, {"Content-Type" => "text/ruby"}, [asset.read]]
103+
return [200, {"Content-Type" => "text/ruby"}, [Pathname(asset).read]]
104104
else
105105
not_found(path_info)
106106
end

0 commit comments

Comments
 (0)
Please sign in to comment.