summaryrefslogtreecommitdiffstats
path: root/apps/files_external/3rdparty
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-03-15 17:22:16 +0100
committerVincent Petry <pvince81@owncloud.com>2016-03-15 18:05:27 +0100
commitab50ba7a585368cb473ab551d54fd9c7b0e69811 (patch)
tree41b1ebcd256d1c75d8aa216d3a956c0864be9626 /apps/files_external/3rdparty
parentad9a0804f3a40123ce931f6f7f365758fe8a0933 (diff)
downloadnextcloud-server-ab50ba7a585368cb473ab551d54fd9c7b0e69811.tar.gz
nextcloud-server-ab50ba7a585368cb473ab551d54fd9c7b0e69811.zip
Fix dropbox storage to not store the whole file in memory
Since the library can only store the full response in memory on download, we use an alternate client lib and set the correct headers to be able to stream the content to a temp file.
Diffstat (limited to 'apps/files_external/3rdparty')
-rw-r--r--apps/files_external/3rdparty/Dropbox/OAuth/Curl.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/3rdparty/Dropbox/OAuth/Curl.php b/apps/files_external/3rdparty/Dropbox/OAuth/Curl.php
index fd66e34bd2d..41134511b80 100644
--- a/apps/files_external/3rdparty/Dropbox/OAuth/Curl.php
+++ b/apps/files_external/3rdparty/Dropbox/OAuth/Curl.php
@@ -196,7 +196,7 @@ class Dropbox_OAuth_Curl extends Dropbox_OAuth {
* @return array Array for request's headers section like
* array('Authorization' => 'OAuth ...');
*/
- private function getOAuthHeader($uri, $params, $method = 'GET', $oAuthParams = null) {
+ public function getOAuthHeader($uri, $params, $method = 'GET', $oAuthParams = null) {
$oAuthParams = $oAuthParams ? $oAuthParams : $this->getOAuthBaseParams();
// create baseString to encode for the sent parameters