lib/dassets/server/response.rb in dassets-0.2.0 vs lib/dassets/server/response.rb in dassets-0.3.0
- old
+ new
@@ -12,10 +12,10 @@
mtime = @asset_file.mtime.to_s
@status, @headers, @body = if env['HTTP_IF_MODIFIED_SINCE'] == mtime
[ 304, Rack::Utils::HeaderHash.new, [] ]
elsif !@asset_file.exists?
- [ 404, Rack::Utils::HeaderHash.new, [] ]
+ [ 404, Rack::Utils::HeaderHash.new, ["Not Found"] ]
else
[ 200,
Rack::Utils::HeaderHash.new.tap do |h|
h["Content-Type"] = @asset_file.mime_type.to_s
h["Content-Length"] = @asset_file.size.to_s