1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-26 16:52:41 +01:00

Revert "Redirect to https"

This reverts commit 8afc7fc2cd.
This commit is contained in:
epriestley 2012-08-30 19:05:01 -07:00
parent 129bff016b
commit cc2225e34c

View file

@ -119,14 +119,6 @@ abstract class AphrontApplicationConfiguration {
$request = $this->getRequest();
$path = $request->getPath();
// Check if we should do an HTTP -> HTTPS redirect
$base_uri = new PhutilURI(
PhabricatorEnv::getEnvConfig('phabricator.base-uri'));
if ($base_uri->getProtocol() === 'https' && !$_SERVER['HTTPS']) {
$base_uri->setPath($path);
return $this->buildRedirectController($base_uri);
}
list($controller, $uri_data) = $this->buildControllerForPath($path);
if (!$controller) {
if (!preg_match('@/$@', $path)) {