Changeset View
Changeset View
Standalone View
Standalone View
src/aphront/AphrontRequest.php
Show First 20 Lines • Show All 823 Lines • ▼ Show 20 Lines | if (!PhabricatorEnv::isClusterAddress($ip)) { | ||||
'Refusing to proxy a request to IP address ("%s") which is not '. | 'Refusing to proxy a request to IP address ("%s") which is not '. | ||||
'in the cluster address block (this address was derived by '. | 'in the cluster address block (this address was derived by '. | ||||
'resolving the domain "%s").', | 'resolving the domain "%s").', | ||||
$ip, | $ip, | ||||
$domain)); | $domain)); | ||||
} | } | ||||
$uri->setPath($this->getPath()); | $uri->setPath($this->getPath()); | ||||
$uri->setQueryParams(self::flattenData($_GET)); | $uri->removeAllQueryParams(); | ||||
foreach (self::flattenData($_GET) as $query_key => $query_value) { | |||||
$uri->appendQueryParam($query_key, $query_value); | |||||
} | |||||
$input = PhabricatorStartup::getRawInput(); | $input = PhabricatorStartup::getRawInput(); | ||||
$future = id(new HTTPSFuture($uri)) | $future = id(new HTTPSFuture($uri)) | ||||
->addHeader('Host', self::getHost()) | ->addHeader('Host', self::getHost()) | ||||
->addHeader('X-Phabricator-Cluster', true) | ->addHeader('X-Phabricator-Cluster', true) | ||||
->setMethod($_SERVER['REQUEST_METHOD']) | ->setMethod($_SERVER['REQUEST_METHOD']) | ||||
->write($input); | ->write($input); | ||||
▲ Show 20 Lines • Show All 70 Lines • Show Last 20 Lines |