Explorar o código

fix issue #68

fix issue #68
walkor %!s(int64=9) %!d(string=hai) anos
pai
achega
2143bf076f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 {