Return result from HttpRequestFactory get and post methods
Bug: T222935 Change-Id: Idf1d00d04abbcf4e3391e3979bbab97e595916a5
This commit is contained in:
parent
bb880f74b1
commit
ba2788f62f
1 changed files with 2 additions and 2 deletions
|
|
@ -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 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue