Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15302770
D21076.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
D21076.diff
View Options
diff --git a/src/conduit/ConduitClient.php b/src/conduit/ConduitClient.php
--- a/src/conduit/ConduitClient.php
+++ b/src/conduit/ConduitClient.php
@@ -143,25 +143,12 @@
// Always use the cURL-based HTTPSFuture, for proxy support and other
// protocol edge cases that HTTPFuture does not support.
- $core_future = new HTTPSFuture($uri);
+ $core_future = new HTTPSFuture($uri, $data);
$core_future->addHeader('Host', $this->getHostStringForHeader());
$core_future->setMethod('POST');
$core_future->setTimeout($this->timeout);
- // See T13507. If possible, try to compress requests. We always expect
- // Phabricator to be able to accept "Content-Encoding: gzip" requests.
- $can_gzip = function_exists('gzencode');
- if ($can_gzip) {
- $gzip_data = phutil_build_http_querystring($data);
- $gzip_data = gzencode($gzip_data);
-
- $core_future->addHeader('Content-Encoding', 'gzip');
- $core_future->setData($gzip_data);
- } else {
- $core_future->setData($data);
- }
-
if ($this->username !== null) {
$core_future->setHTTPBasicAuthCredentials(
$this->username,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 6, 9:28 PM (5 d, 8 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7309183
Default Alt Text
D21076.diff (1 KB)
Attached To
Mode
D21076: Revert "Compress requests from the Conduit client to Phabricator"
Attached
Detach File
Event Timeline
Log In to Comment