From 04cf9060785835e27da422a4e9a7620ea0b379a6 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 8 Apr 2015 13:16:57 +0200 Subject: php-pecl-http: 2.4.3 --- upload.inc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 upload.inc (limited to 'upload.inc') diff --git a/upload.inc b/upload.inc new file mode 100644 index 0000000..9502d2b --- /dev/null +++ b/upload.inc @@ -0,0 +1,20 @@ +getHeader("Expect") === "100-continue") { + $response = new http\Env\Response; + $response->setEnvRequest($request); + $response->setResponseCode(100); + $response->send($client); + } + + /* return the initial message as response body */ + $response = new http\Env\Response; + /* avoid OOM with $response->getBody()->append($request); */ + $request->toStream($response->getBody()->getResource()); + $response->send($client); +}); -- cgit