Revert "Skip files with empty #size in ParamParser, fixes #309 (#333)"

This reverts commit d0c034b911.
This commit is contained in:
Sdogruyol 2017-03-18 00:47:04 +03:00
parent 4409f56ba7
commit f4de825ab8

View file

@ -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)