소스 검색

fix http input

walkor 10 년 전
부모
커밋
7a4e97b8f9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Workerman/Protocols/Http.php

+ 1 - 1
Workerman/Protocols/Http.php

@@ -30,7 +30,7 @@ class Http implements \Workerman\Protocols\ProtocolInterface
             if(preg_match("/\r\nContent-Length: ?(\d+)/", $header, $match))
             {
                 $content_lenght = $match[1];
-                return $content_lenght;
+                return $content_lenght + strlen($header) + 4;
             }
             else
             {