Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/controller/DiffusionServeController.php
| Show First 20 Lines • Show All 431 Lines • ▼ Show 20 Lines | private function serveVCSRequest( | ||||
| $uri = $repository->getAlmanacServiceURI( | $uri = $repository->getAlmanacServiceURI( | ||||
| $viewer, | $viewer, | ||||
| array( | array( | ||||
| 'neverProxy' => $is_cluster_request, | 'neverProxy' => $is_cluster_request, | ||||
| 'protocols' => array( | 'protocols' => array( | ||||
| 'http', | 'http', | ||||
| 'https', | 'https', | ||||
| ), | ), | ||||
| 'writable' => !$this->isReadOnlyRequest($repository), | |||||
| )); | )); | ||||
| if ($uri) { | if ($uri) { | ||||
| $future = $this->getRequest()->newClusterProxyFuture($uri); | $future = $this->getRequest()->newClusterProxyFuture($uri); | ||||
| return id(new AphrontHTTPProxyResponse()) | return id(new AphrontHTTPProxyResponse()) | ||||
| ->setHTTPFuture($future); | ->setHTTPFuture($future); | ||||
| } | } | ||||
| // Otherwise, we're going to handle the request locally. | // Otherwise, we're going to handle the request locally. | ||||
| ▲ Show 20 Lines • Show All 794 Lines • Show Last 20 Lines | |||||