Ver código fonte

Update Http.php

walkor 3 anos atrás
pai
commit
bb07319ae0
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/Protocols/Http.php

+ 1 - 1
src/Protocols/Http.php

@@ -86,7 +86,7 @@ class Http
         if (false === $crlf_pos) {
             // Judge whether the package length exceeds the limit.
             if ($recv_len = \strlen($recv_buffer) >= 16384) {
-                $connection->close("HTTP/1.1 413 Request Entity Too Large\r\n\r\n");
+                $connection->close("HTTP/1.1 413 Request Entity Too Large\r\n\r\n", true);
                 return 0;
             }
             return 0;