mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
parent
6a29240bbe
commit
5554d3d2f1
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ module Kemal
|
||||||
end
|
end
|
||||||
send_file(context, file_path)
|
send_file(context, file_path)
|
||||||
elsif config.is_a?(Hash) && config.fetch("dir_listing", false)
|
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)
|
directory_listing(context.response, request_path, file_path)
|
||||||
else
|
else
|
||||||
call_next(context)
|
call_next(context)
|
||||||
|
|
Loading…
Reference in a new issue