From 2a09563533894f68316b355d4b736ead0bfe7de5 Mon Sep 17 00:00:00 2001 From: vrana Date: Fri, 8 Jun 2012 10:38:55 -0700 Subject: [PATCH] Always use HTTPSFuture in elasticsearch. Test Plan: Search elasticly. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D2685 --- .../search/engine/PhabricatorSearchEngineElastic.php | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/applications/search/engine/PhabricatorSearchEngineElastic.php b/src/applications/search/engine/PhabricatorSearchEngineElastic.php index 299e5d6cdf..8a4f23cc9c 100644 --- a/src/applications/search/engine/PhabricatorSearchEngineElastic.php +++ b/src/applications/search/engine/PhabricatorSearchEngineElastic.php @@ -203,23 +203,13 @@ final class PhabricatorSearchEngineElastic extends PhabricatorSearchEngine { $uri->setPath($path); - $protocol = $uri->getProtocol(); - if ($protocol == 'https') { - $future = new HTTPSFuture($uri, $data); - } else { - $future = new HTTPFuture($uri, $data); - } - + $future = new HTTPSFuture($uri, $data); if ($is_write) { $future->setMethod('PUT'); - } else { - $future->setMethod('GET'); } - if ($this->getTimeout()) { $future->setTimeout($this->getTimeout()); } - list($body) = $future->resolvex(); if ($is_write) {