Changeset View
Changeset View
Standalone View
Standalone View
src/aphront/configuration/AphrontApplicationConfiguration.php
Show First 20 Lines • Show All 770 Lines • ▼ Show 20 Lines | $result = array( | ||||
'user' => idx($_SERVER, 'PHP_AUTH_USER'), | 'user' => idx($_SERVER, 'PHP_AUTH_USER'), | ||||
'pass' => idx($_SERVER, 'PHP_AUTH_PW'), | 'pass' => idx($_SERVER, 'PHP_AUTH_PW'), | ||||
// This just makes sure that the response compresses well, so reasonable | // This just makes sure that the response compresses well, so reasonable | ||||
// algorithms should want to gzip or deflate it. | // algorithms should want to gzip or deflate it. | ||||
'filler' => str_repeat('Q', 1024 * 16), | 'filler' => str_repeat('Q', 1024 * 16), | ||||
); | ); | ||||
return id(new AphrontJSONResponse()) | return id(new AphrontJSONResponse()) | ||||
->setAddJSONShield(false) | ->setAddJSONShield(false) | ||||
->setContent($result); | ->setContent($result); | ||||
} | } | ||||
private static function readHTTPPOSTData() { | private static function readHTTPPOSTData() { | ||||
$request_method = idx($_SERVER, 'REQUEST_METHOD'); | $request_method = idx($_SERVER, 'REQUEST_METHOD'); | ||||
if ($request_method === 'PUT') { | if ($request_method === 'PUT') { | ||||
▲ Show 20 Lines • Show All 82 Lines • Show Last 20 Lines |