walkor преди 9 години
родител
ревизия
2143bf076f
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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 {