From 8cb9770ec3c6cf5897e644229dad8d0b5c360941 Mon Sep 17 00:00:00 2001 From: Serdar Dogruyol Date: Mon, 20 Nov 2017 17:23:11 +0300 Subject: [PATCH] Use HTTP::Params.add instead of HTTP::Params.[]= --- src/kemal/param_parser.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kemal/param_parser.cr b/src/kemal/param_parser.cr index d2893cb..01cb8c5 100644 --- a/src/kemal/param_parser.cr +++ b/src/kemal/param_parser.cr @@ -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