From bd62b5077a9a7e693f2c07ddae881d95e84b0e0f Mon Sep 17 00:00:00 2001 From: Ivo Nascimento Date: Tue, 29 Jul 2014 21:16:48 -0300 Subject: [PATCH 1/2] FIX Continue Header line breaker closereactphp/react#308 --- src/Response.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) From 2e39caf42d7eb9e54983df144c92e0cb013e58f8 Mon Sep 17 00:00:00 2001 From: Ivo Nascimento Date: Tue, 29 Jul 2014 21:31:02 -0300 Subject: [PATCH 2/2] update Response test --- tests/ResponseTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')