Page MenuHomePhabricator

D15145.id.diff
No OneTemporary

D15145.id.diff

diff --git a/support/PhabricatorStartup.php b/support/PhabricatorStartup.php
--- a/support/PhabricatorStartup.php
+++ b/support/PhabricatorStartup.php
@@ -129,7 +129,19 @@
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);
}

File Metadata

Mime Type
text/plain
Expires
Sat, Mar 22, 5:53 AM (1 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7715887
Default Alt Text
D15145.id.diff (661 B)

Event Timeline