Remove debug code in upload handler

This commit is contained in:
Alex Ling 2020-04-19 14:32:58 +00:00
parent 8506044232
commit ce5f444012

View File

@ -11,14 +11,10 @@ class UploadHandler < Kemal::Handler
return call_next env
end
pp env.request.path
ary = env.request.path.split(File::SEPARATOR).select { |part| !part.empty? }
ary[0] = @upload_dir
path = File.join ary
pp path
if File.exists? path
send_file env, path
else