Directory Listing: Add UTF-8 Charset to the response Content type (#679)
This commit is contained in:
parent
52ab623c50
commit
e69bd400b7
|
@ -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"
|
||||
context.response.content_type = "text/html;charset=UTF-8;"
|
||||
directory_listing(context.response, request_path, file_path)
|
||||
else
|
||||
call_next(context)
|
||||
|
|
Loading…
Reference in New Issue