Changeset View
Changeset View
Standalone View
Standalone View
support/PhabricatorStartup.php
| Show First 20 Lines • Show All 123 Lines • ▼ Show 20 Lines | public static function didStartup($start_time) { | ||||
| self::normalizeInput(); | self::normalizeInput(); | ||||
| self::verifyRewriteRules(); | self::verifyRewriteRules(); | ||||
| self::detectPostMaxSizeTriggered(); | self::detectPostMaxSizeTriggered(); | ||||
| self::beginOutputCapture(); | self::beginOutputCapture(); | ||||
| self::$rawInput = (string)file_get_contents('php://input'); | if (isset($_SERVER['HTTP_CONTENT_ENCODING'])) { | ||||
| $encoding = trim($_SERVER['HTTP_CONTENT_ENCODING']); | |||||
| } else { | |||||
| $encoding = null; | |||||
| } | |||||
| if ($encoding === 'gzip') { | |||||
| $source_stream = 'compress.zlib://php://input'; | |||||
| } else { | |||||
| $source_stream = 'php://input'; | |||||
| } | |||||
| self::$rawInput = (string)file_get_contents($source_stream); | |||||
| } | } | ||||
| /** | /** | ||||
| * @task hook | * @task hook | ||||
| */ | */ | ||||
| public static function didShutdown() { | public static function didShutdown() { | ||||
| $event = error_get_last(); | $event = error_get_last(); | ||||
| ▲ Show 20 Lines • Show All 777 Lines • Show Last 20 Lines | |||||