Pārlūkot izejas kodu

Simplify codes

Signed-off-by: Jack Cherng <jfcherng@gmail.com>
Jack Cherng 5 gadi atpakaļ
vecāks
revīzija
9202712f49
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      Protocols/Http/Request.php

+ 2 - 2
Protocols/Http/Request.php

@@ -458,8 +458,8 @@ class Request
             $this->_data['post'] = static::$_postCache[$body_buffer];
             return;
         }
-        $content_type = $this->header('content-type');
-        if ($content_type !== null && \preg_match('/boundary="?(\S+)"?/', $content_type, $match)) {
+        $content_type = $this->header('content-type', '');
+        if (\preg_match('/boundary="?(\S+)"?/', $content_type, $match)) {
             $http_post_boundary = '--' . $match[1];
             $this->parseUploadFiles($http_post_boundary);
             return;