diff --git a/src/Response.php b/src/Response.php index 13b22211..36e375fc 100644 --- a/src/Response.php +++ b/src/Response.php @@ -43,7 +43,7 @@ public function writeContinue() throw new \Exception('Response head has already been written.'); } - $this->conn->write("HTTP/1.1 100 Continue\r\n"); + $this->conn->write("HTTP/1.1 100 Continue\r\n\r\n"); } public function writeHead($status = 200, array $headers = array()) diff --git a/tests/ResponseTest.php b/tests/ResponseTest.php index 2ca0a991..7692fb83 100644 --- a/tests/ResponseTest.php +++ b/tests/ResponseTest.php @@ -93,7 +93,7 @@ public function writeContinueShouldSendContinueLineBeforeRealHeaders() $conn ->expects($this->at(3)) ->method('write') - ->with("HTTP/1.1 100 Continue\r\n"); + ->with("HTTP/1.1 100 Continue\r\n\r\n"); $conn ->expects($this->at(4)) ->method('write')