mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-03 03:15:31 -04:00
Remove debug code in upload handler
This commit is contained in:
parent
8506044232
commit
ce5f444012
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user