aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Http/Client/Response.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2018-02-08 13:39:27 +0100
committerRobin Appelman <robin@icewind.nl>2018-02-09 17:13:21 +0100
commit9b25ff9fcb7299419c42b457da23ea3bae186157 (patch)
tree9cfaa02ad646bfaf71fc769b3bd8a235650e72cd /lib/private/Http/Client/Response.php
parent18215eb01d0812651f4e3ef4dd772002df388a3a (diff)
downloadnextcloud-server-9b25ff9fcb7299419c42b457da23ea3bae186157.tar.gz
nextcloud-server-9b25ff9fcb7299419c42b457da23ea3bae186157.zip
adjust httpclient to guzzle6
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Http/Client/Response.php')
-rw-r--r--lib/private/Http/Client/Response.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/private/Http/Client/Response.php b/lib/private/Http/Client/Response.php
index 0ce6cc98e0d..73c14c2926d 100644
--- a/lib/private/Http/Client/Response.php
+++ b/lib/private/Http/Client/Response.php
@@ -25,7 +25,7 @@ declare(strict_types=1);
namespace OC\Http\Client;
use OCP\Http\Client\IResponse;
-use GuzzleHttp\Message\ResponseInterface as GuzzleResponse;
+use Psr\Http\Message\ResponseInterface;
/**
* Class Response
@@ -33,7 +33,7 @@ use GuzzleHttp\Message\ResponseInterface as GuzzleResponse;
* @package OC\Http
*/
class Response implements IResponse {
- /** @var GuzzleResponse */
+ /** @var ResponseInterface */
private $response;
/**
@@ -42,10 +42,10 @@ class Response implements IResponse {
private $stream;
/**
- * @param GuzzleResponse $response
+ * @param ResponseInterface $response
* @param bool $stream
*/
- public function __construct(GuzzleResponse $response, $stream = false) {
+ public function __construct(ResponseInterface $response, $stream = false) {
$this->response = $response;
$this->stream = $stream;
}
@@ -71,7 +71,7 @@ class Response implements IResponse {
* @return string
*/
public function getHeader(string $key): string {
- return $this->response->getHeader($key);
+ return $this->response->getHeader($key)[0];
}
/**