no Content-Length on CONNECT responses
authorMichael Wallner <mike@php.net>
Wed, 11 Feb 2015 09:42:34 +0000 (10:42 +0100)
committerMichael Wallner <mike@php.net>
Wed, 11 Feb 2015 09:42:34 +0000 (10:42 +0100)
tests/proxy.inc

index 89d31f4c53408f62343d0d35190c1a416802808f..d6803db656c15280b98578e85f2621c9b91e43ee 100644 (file)
@@ -9,7 +9,6 @@ foreach (range(8000, 9000) as $port) {
                        
                        if ($request->getHeader("Proxy-Connection")) {
                                $response = new http\Env\Response;
-                               $response->setHeader("Content-Length", 0);
                                $response->send($client);
                                
                                /* soak up the request following the connect */