From f4de825ab83276f6e78b98c8a7ad895cf478f412 Mon Sep 17 00:00:00 2001 From: Sdogruyol Date: Sat, 18 Mar 2017 00:47:04 +0300 Subject: [PATCH] Revert "Skip files with empty #size in ParamParser, fixes #309 (#333)" This reverts commit d0c034b911e9cb891a9e6eee3a68ba7d77c34499. --- 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 6c70194..f95fb24 100644 --- a/src/kemal/param_parser.cr +++ b/src/kemal/param_parser.cr @@ -67,7 +67,7 @@ module Kemal private def parse_file_upload HTTP::FormData.parse(@request) do |upload| - next unless upload && upload.size + next unless upload filename = upload.filename if !filename.nil? @files[upload.name] = FileUpload.new(upload: upload)