lib/roda/plugins/public.rb in roda-3.69.0 vs lib/roda/plugins/public.rb in roda-3.70.0
- old
+ new
@@ -121,11 +121,11 @@
s, h, b = public_serve(server, compressed_path)
headers = response.headers
headers.replace(h)
unless s == 304
- headers['Content-Type'] = ::Rack::Mime.mime_type(::File.extname(path), 'text/plain')
- headers['Content-Encoding'] = encoding
+ headers[RodaResponseHeaders::CONTENT_TYPE] = ::Rack::Mime.mime_type(::File.extname(path), 'text/plain')
+ headers[RodaResponseHeaders::CONTENT_ENCODING] = encoding
end
halt [s, headers, b]
end
end