Explorar o código

Use the target host and not the proxy host in the client hello request

Closes #530
Frank Brückner %!s(int64=11) %!d(string=hai) anos
pai
achega
331a3f19b1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      library/Zend/Http/Client/Adapter/Proxy.php

+ 1 - 1
library/Zend/Http/Client/Adapter/Proxy.php

@@ -244,7 +244,7 @@ class Zend_Http_Client_Adapter_Proxy extends Zend_Http_Client_Adapter_Socket
     )
     {
         $request = "CONNECT $host:$port HTTP/$http_ver\r\n" .
-                   "Host: " . $this->config['proxy_host'] . "\r\n";
+                   "Host: " . $host . "\r\n";
 
         // Process provided headers, including important ones to CONNECT request
         foreach ($headers as $k => $v) {