Followup to #679 (#680)

This commit is contained in:
Sijawusz Pur Rahnama 2024-05-16 19:36:02 +02:00 committed by GitHub
parent 6a29240bbe
commit 5554d3d2f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

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)