Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15419388
D15145.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
661 B
Referenced Files
None
Subscribers
None
D15145.id.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D15145: Decode "Content-Encoding: gzip" content
Attached
Detach File
Event Timeline
Log In to Comment