lib/dassets/server/response.rb in dassets-0.13.0 vs lib/dassets/server/response.rb in dassets-0.13.1

- old
+ new

@@ -19,10 +19,10 @@ [ 404, Rack::Utils::HeaderHash.new, ["Not Found"] ] else @asset_file.digest! body = Body.new(env, @asset_file) [ body.partial? ? 206 : 200, - Rack::Utils::HeaderHash.new.tap do |h| + Rack::Utils::HeaderHash.new.merge(@asset_file.response_headers).tap do |h| h['Last-Modified'] = mtime h['Content-Type'] = @asset_file.mime_type.to_s h['Content-Length'] = body.size.to_s h['Content-Range'] = body.content_range if body.partial? end,