Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/controller/DiffusionServeController.php
| Show First 20 Lines • Show All 990 Lines • ▼ Show 20 Lines | foreach ($objects as $object) { | ||||
| // <https://github.com/github/git-lfs/issues/1088> | // <https://github.com/github/git-lfs/issues/1088> | ||||
| $no_authorization = 'Basic '.base64_encode('none'); | $no_authorization = 'Basic '.base64_encode('none'); | ||||
| $get_uri = $file->getCDNURI(); | $get_uri = $file->getCDNURI(); | ||||
| $actions['download'] = array( | $actions['download'] = array( | ||||
| 'href' => $get_uri, | 'href' => $get_uri, | ||||
| 'header' => array( | 'header' => array( | ||||
| 'Authorization' => $no_authorization, | 'Authorization' => $no_authorization, | ||||
| 'X-Phabricator-Request-Type' => 'git-lfs', | |||||
| ), | ), | ||||
| ); | ); | ||||
| } else { | } else { | ||||
| $error = array( | $error = array( | ||||
| 'code' => 404, | 'code' => 404, | ||||
| 'message' => pht( | 'message' => pht( | ||||
| 'Object "%s" was previously uploaded, but no longer exists '. | 'Object "%s" was previously uploaded, but no longer exists '. | ||||
| 'on this server.', | 'on this server.', | ||||
| ▲ Show 20 Lines • Show All 177 Lines • Show Last 20 Lines | |||||