Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15335039
D21122.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D21122.diff
View Options
diff --git a/src/applications/config/check/PhabricatorWebServerSetupCheck.php b/src/applications/config/check/PhabricatorWebServerSetupCheck.php
--- a/src/applications/config/check/PhabricatorWebServerSetupCheck.php
+++ b/src/applications/config/check/PhabricatorWebServerSetupCheck.php
@@ -45,6 +45,7 @@
$self_future = id(new HTTPSFuture($base_uri))
->addHeader('X-Phabricator-SelfCheck', 1)
->addHeader('Accept-Encoding', 'gzip')
+ ->setDisableContentDecoding(true)
->setHTTPBasicAuthCredentials(
$expect_user,
new PhutilOpaqueEnvelope($expect_pass))
@@ -134,7 +135,7 @@
->setMessage($message);
} else {
if (function_exists('gzdecode')) {
- $body = gzdecode($body);
+ $body = @gzdecode($body);
} else {
$body = null;
}
@@ -303,7 +304,7 @@
}
$raw_body = idx($structure, 'raw.base64');
- $raw_body = base64_decode($raw_body);
+ $raw_body = @base64_decode($raw_body);
// The server received the exact compressed bytes we expected it to, so
// everything is working great.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 9, 1:51 PM (2 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7389111
Default Alt Text
D21122.diff (1 KB)
Attached To
Mode
D21122: Disable automatic decoding of "Content-Encoding" responses during "Accept-Encoding" setup test
Attached
Detach File
Event Timeline
Log In to Comment