From ba2788f62fc19e2ccbaf9e77f0937e16547e941d Mon Sep 17 00:00:00 2001 From: daniel Date: Mon, 13 May 2019 11:31:52 +0200 Subject: [PATCH] Return result from HttpRequestFactory get and post methods Bug: T222935 Change-Id: Idf1d00d04abbcf4e3391e3979bbab97e595916a5 --- includes/http/HttpRequestFactory.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/http/HttpRequestFactory.php b/includes/http/HttpRequestFactory.php index 08520b765a..8e5567b001 100644 --- a/includes/http/HttpRequestFactory.php +++ b/includes/http/HttpRequestFactory.php @@ -140,7 +140,7 @@ class HttpRequestFactory { * @return string|null */ public function get( $url, array $options = [], $caller = __METHOD__ ) { - $this->request( 'GET', $url, $options, $caller ); + return $this->request( 'GET', $url, $options, $caller ); } /** @@ -153,7 +153,7 @@ class HttpRequestFactory { * @return string|null */ public function post( $url, array $options = [], $caller = __METHOD__ ) { - $this->request( 'POST', $url, $options, $caller ); + return $this->request( 'POST', $url, $options, $caller ); } /** -- 2.20.1