From: daniel Date: Mon, 13 May 2019 09:31:52 +0000 (+0200) Subject: Return result from HttpRequestFactory get and post methods X-Git-Tag: 1.34.0-rc.0~1707 X-Git-Url: http://git.cyclocoop.org/data/%27%20.%20mediabox_timestamp%28find_in_path%28%27javascript/%7B%24www_url%7Dadmin/compta/operations/%40%20%27info_etape_suivante_2%27%20=%3E%20%27You%20can%20move%20on%20to%20the%20next%20step.%27%2C%20%27info_exceptions_proxy%27%20=%3E%20%27Exceptions%20for%20the%20proxy%27%2C%20%27info_exportation_base%27%20=%3E%20%27export%20database%20to%20%40archive%40%27%2C-%27info_facilite_suivi_activite%27%20=%3E%20%27To%20simplify%20monitoring%20of%20the%20site/%27s%20editorial;-%20%20activities%2C%20SPIP%20can%20send%20rmail%20notifications%2C%20e.g.%20to%20an%20editors/%27.%28%24current%20%3E%202?a=commitdiff_plain;h=ba2788f62fc19e2ccbaf9e77f0937e16547e941d;p=lhc%2Fweb%2Fwiklou.git Return result from HttpRequestFactory get and post methods Bug: T222935 Change-Id: Idf1d00d04abbcf4e3391e3979bbab97e595916a5 --- 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 ); } /**