Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15408699
D17580.id42291.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
709 B
Referenced Files
None
Subscribers
None
D17580.id42291.diff
View Options
diff --git a/src/applications/search/fulltextstorage/PhabricatorElasticFulltextStorageEngine.php b/src/applications/search/fulltextstorage/PhabricatorElasticFulltextStorageEngine.php
--- a/src/applications/search/fulltextstorage/PhabricatorElasticFulltextStorageEngine.php
+++ b/src/applications/search/fulltextstorage/PhabricatorElasticFulltextStorageEngine.php
@@ -550,7 +550,11 @@
$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);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 20, 12:51 AM (1 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7712255
Default Alt Text
D17580.id42291.diff (709 B)
Attached To
Mode
D17580: Set content-type to application/json
Attached
Detach File
Event Timeline
Log In to Comment