no need to return next handler, return 404

This commit is contained in:
Alexander Reelsen 2019-07-29 23:56:01 +02:00
parent b86d761242
commit 64c8571535

View file

@ -42,7 +42,7 @@ module Kemal
# prevent symlinks out of the public dir
if File.symlink?(file_path) && !File.real_path(file_path).starts_with?(@public_dir)
call_next(context)
context.response.status_code = 404
return
end