lib/roda/plugins/public.rb in roda-3.33.0 vs lib/roda/plugins/public.rb in roda-3.34.0
- old
+ new
@@ -108,12 +108,10 @@
if public_file_readable?(compressed_path)
res = public_serve(server, compressed_path)
headers = res[1]
unless res[0] == 304
- if mime_type = ::Rack::Mime.mime_type(::File.extname(path), 'text/plain')
- headers['Content-Type'] = mime_type
- end
+ headers['Content-Type'] = ::Rack::Mime.mime_type(::File.extname(path), 'text/plain')
headers['Content-Encoding'] = encoding
end
halt res
end