Use HTTP::Params.add instead of HTTP::Params.[]=

This commit is contained in:
Serdar Dogruyol 2017-11-20 17:23:11 +03:00
parent a3a0f40468
commit 8cb9770ec3

View file

@ -72,7 +72,7 @@ module Kemal
if !filename.nil?
@files[upload.name] = FileUpload.new(upload: upload)
else
@body[upload.name] = upload.body.gets_to_end
@body.add(upload.name, upload.body.gets_to_end)
end
end
end