Event Timeline
Comment Actions
@Paladox: Try this?
diff --git a/src/applications/search/fulltextstorage/PhabricatorElasticFulltextStorageEngine.php b/src/applications/search/fulltextstorage/PhabricatorElasticFulltextStorageEngine.php index aa966ca..60c6185 100644 --- a/src/applications/search/fulltextstorage/PhabricatorElasticFulltextStorageEngine.php +++ b/src/applications/search/fulltextstorage/PhabricatorElasticFulltextStorageEngine.php @@ -550,7 +550,11 @@ class PhabricatorElasticFulltextStorageEngine $uri = $host->getURI($path); $data = phutil_json_encode($data); - $future = new HTTPSFuture($uri, $data); + $future = new HTTPSFuture($uri); + + $future->addHeader('Content-Type', 'application/json'); + $future->write($data); + if ($method != 'GET') { $future->setMethod($method); }
Comment Actions
diff --git a/src/applications/search/fulltextstorage/PhabricatorElasticFulltextStorageEngine.php b/src/applications/search/fulltextstorage/PhabricatorElasticFulltextStorageEngine.php index 60c6185..2e456ec 100644 --- a/src/applications/search/fulltextstorage/PhabricatorElasticFulltextStorageEngine.php +++ b/src/applications/search/fulltextstorage/PhabricatorElasticFulltextStorageEngine.php @@ -550,10 +550,8 @@ class PhabricatorElasticFulltextStorageEngine $uri = $host->getURI($path); $data = phutil_json_encode($data); - $future = new HTTPSFuture($uri); - + $future = new HTTPSFuture($uri, $data); $future->addHeader('Content-Type', 'application/json'); - $future->write($data); if ($method != 'GET') { $future->setMethod($method);