diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-08-29 14:52:37 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-08-29 14:56:08 +0200 |
commit | b67d39508909e72913c97a050b25b51a9b1bd707 (patch) | |
tree | 9f40e8342c2208c34e92726dba6d3605abf249b7 /lib/private/http/client/client.php | |
parent | faa62d17993b9467f0041cbca2cafccdcb243385 (diff) | |
download | nextcloud-server-b67d39508909e72913c97a050b25b51a9b1bd707.tar.gz nextcloud-server-b67d39508909e72913c97a050b25b51a9b1bd707.zip |
allow streamed responses in http client
Diffstat (limited to 'lib/private/http/client/client.php')
-rw-r--r-- | lib/private/http/client/client.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/http/client/client.php b/lib/private/http/client/client.php index 323fc0d324f..b0aff10a413 100644 --- a/lib/private/http/client/client.php +++ b/lib/private/http/client/client.php @@ -120,7 +120,8 @@ class Client implements IClient { */ public function get($uri, array $options = []) { $response = $this->client->get($uri, $options); - return new Response($response); + $isStream = isset($options['stream']) && $options['stream']; + return new Response($response, $isStream); } /** |