Pārlūkot izejas kodu

fix issue #68

fix issue #68
walkor 9 gadi atpakaļ
vecāks
revīzija
2143bf076f
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      Protocols/Http.php

+ 1 - 1
Protocols/Http.php

@@ -42,7 +42,7 @@ class Http
         if (0 === strpos($recv_buffer, "POST")) {
             // find Content-Length
             $match = array();
-            if (preg_match("/\r\nContent-Length: ?(\d+)/", $header, $match)) {
+            if (preg_match("/\r\nContent-Length: ?(\d+)/i", $header, $match)) {
                 $content_length = $match[1];
                 return $content_length + strlen($header) + 4;
             } else {