Просмотр исходного кода

Merge pull request #734 from EzzalddeenAli/patch-1

Update Request.php
walkor 3 лет назад
Родитель
Сommit
f8b1f9828f
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/Protocols/Http/Request.php

+ 1 - 1
src/Protocols/Http/Request.php

@@ -592,7 +592,7 @@ class Request
             \array_walk_recursive($result, function (&$value) use ($file) {
                 $value = $file;
             });
-            $this->_data['files'] = \array_merge($this->_data['files'], $result);
+            $this->_data['files'] = \array_merge_recursive($this->_data['files'], $result);
         }
         if ($post_str) {
             parse_str($post_str, $this->_data['post']);