Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/controller/DiffusionServeController.php
| Show First 20 Lines • Show All 312 Lines • ▼ Show 20 Lines | $env = array( | ||||
| 'CONTENT_TYPE' => $request->getHTTPHeader('Content-Type'), | 'CONTENT_TYPE' => $request->getHTTPHeader('Content-Type'), | ||||
| 'HTTP_CONTENT_ENCODING' => $request->getHTTPHeader('Content-Encoding'), | 'HTTP_CONTENT_ENCODING' => $request->getHTTPHeader('Content-Encoding'), | ||||
| 'REMOTE_ADDR' => $_SERVER['REMOTE_ADDR'], | 'REMOTE_ADDR' => $_SERVER['REMOTE_ADDR'], | ||||
| 'GIT_PROJECT_ROOT' => $repository_root, | 'GIT_PROJECT_ROOT' => $repository_root, | ||||
| 'GIT_HTTP_EXPORT_ALL' => '1', | 'GIT_HTTP_EXPORT_ALL' => '1', | ||||
| 'PATH_INFO' => $request_path, | 'PATH_INFO' => $request_path, | ||||
| 'REMOTE_USER' => $viewer->getUsername(), | 'REMOTE_USER' => $viewer->getUsername(), | ||||
| 'PHABRICATOR_USER' => $viewer->getUsername(), | |||||
| // TODO: Set these correctly. | // TODO: Set these correctly. | ||||
| // GIT_COMMITTER_NAME | // GIT_COMMITTER_NAME | ||||
| // GIT_COMMITTER_EMAIL | // GIT_COMMITTER_EMAIL | ||||
| ); | ); | ||||
| $input = PhabricatorStartup::getRawInput(); | $input = PhabricatorStartup::getRawInput(); | ||||
| ▲ Show 20 Lines • Show All 228 Lines • Show Last 20 Lines | |||||