diff options
author | Vincent Petry <vincent@nextcloud.com> | 2020-11-16 22:16:34 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2022-03-17 08:24:07 +0100 |
commit | 9b6a1cc8ae41807e98f9c4155b6241d3f1f7e470 (patch) | |
tree | d12fa75ce3b16519a01cd8c06ec998b0acf86d81 /lib/private/Http/Client | |
parent | 4cdc8900f7325d38056060b355e8f25b79b96413 (diff) | |
download | nextcloud-server-9b6a1cc8ae41807e98f9c4155b6241d3f1f7e470.tar.gz nextcloud-server-9b6a1cc8ae41807e98f9c4155b6241d3f1f7e470.zip |
Send images to imaginary docker to generate previews
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Co-Authored-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'lib/private/Http/Client')
-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 55a44eb41ba..673f566e354 100644 --- a/lib/private/Http/Client/Client.php +++ b/lib/private/Http/Client/Client.php @@ -292,7 +292,8 @@ class Client implements IClient { unset($options['body']); } $response = $this->client->request('post', $uri, $this->buildRequestOptions($options)); - return new Response($response); + $isStream = isset($options['stream']) && $options['stream']; + return new Response($response, $isStream); } /** |