Explorar o código

fix http input

walkor %!s(int64=10) %!d(string=hai) anos
pai
achega
7a4e97b8f9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
             {