Followup to #679

This commit is contained in:
Sijawusz Pur Rahnama 2024-05-07 23:02:24 +02:00 committed by GitHub
parent e69bd400b7
commit 15cb05cc94
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -57,7 +57,7 @@ module Kemal
end
send_file(context, file_path)
elsif config.is_a?(Hash) && config.fetch("dir_listing", false)
context.response.content_type = "text/html;charset=UTF-8;"
context.response.content_type = "text/html; charset=utf-8"
directory_listing(context.response, request_path, file_path)
else
call_next(context)