浏览代码

fix issue #68

fix issue #68
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 {