Return result from HttpRequestFactory get and post methods

Bug: T222935
Change-Id: Idf1d00d04abbcf4e3391e3979bbab97e595916a5
This commit is contained in:
daniel 2019-05-13 11:31:52 +02:00
parent bb880f74b1
commit ba2788f62f

View file

@ -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 );
}
/**