Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit 331a3f1

Browse files
committed
Use the target host and not the proxy host in the client hello request
Closes zendframework#530
1 parent 8cbb06e commit 331a3f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/Zend/Http/Client/Adapter/Proxy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ protected function connectHandshake(
244244
)
245245
{
246246
$request = "CONNECT $host:$port HTTP/$http_ver\r\n" .
247-
"Host: " . $this->config['proxy_host'] . "\r\n";
247+
"Host: " . $host . "\r\n";
248248

249249
// Process provided headers, including important ones to CONNECT request
250250
foreach ($headers as $k => $v) {

0 commit comments

Comments
 (0)