This commit is contained in:
Marcel Pociot
2020-04-14 22:41:46 +02:00
parent 87d254db63
commit e49708b290
2 changed files with 6 additions and 6 deletions

View File

@@ -37,12 +37,10 @@ class Connection
$appName = config('app.name');
$appVersion = config('app.version');
return str_replace(
"Host: {$this->subdomain}.{$serverHost}:{$port}\r\n",
"Host: {$this->host}\r\n" .
$data = preg_replace('/Host: '.$this->subdomain.'.'.$serverHost.'(.*)\r\n/', "Host: {$this->host}\r\n" .
"X-Tunnel-By: {$appName} {$appVersion}\r\n" .
"X-Original-Host: {$this->subdomain}.{$serverHost}:{$port}\r\n",
$data
);
"X-Original-Host: {$this->subdomain}.{$serverHost}:{$port}\r\n", $data);
return $data;
}
}