mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
Small refactor
This commit is contained in:
parent
7ffa6700de
commit
5fb5a4c6ae
2 changed files with 2 additions and 3 deletions
|
@ -32,7 +32,7 @@ class Kemal::Logger < HTTP::Handler
|
|||
method = request.method.colorize(methodColor)
|
||||
end
|
||||
|
||||
output_message = "#{time} |#{status_code}| #{method} #{request.resource} - (#{elapsed_text})\n"
|
||||
output_message = "#{time} |#{status_code}| #{method} #{request.resource} - #{elapsed_text}\n"
|
||||
write output_message
|
||||
response
|
||||
end
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
class Kemal::StaticFileHandler < HTTP::StaticFileHandler
|
||||
def call(request)
|
||||
request_path = request.path.not_nil!
|
||||
return call_next(request) if request_path == "/"
|
||||
return call_next(request) if request.path.not_nil! == "/"
|
||||
super
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue