mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
Directory Listing: Add UTF-8 Charset to the response Content type (#679)
This commit is contained in:
parent
52ab623c50
commit
e69bd400b7
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue