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 89d31f4..d6803db 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 */