Skip to content

Commit

Permalink
Merge aca5b48 into f7799a7
Browse files Browse the repository at this point in the history
  • Loading branch information
bunglestink committed Sep 9, 2015
2 parents f7799a7 + aca5b48 commit 6233ca5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/pkgcloud/core/base/client.js
Expand Up @@ -84,6 +84,10 @@ Client.prototype._request = function (options, callback) {
requestOptions.body = options.body;
}

if (options.encoding || options.encoding === null) {
requestOptions.encoding = options.encoding;
}

if (options.container) {
requestOptions.signingUrl = '/' + options.container + '/';

Expand Down
3 changes: 2 additions & 1 deletion lib/pkgcloud/openstack/storage/client/files.js
Expand Up @@ -203,7 +203,8 @@ exports.download = function (options, callback) {
container: container,
path: options.remote,
download: true,
headers: options.headers
headers: options.headers,
encoding: null
}, success);

if (inputStream) {
Expand Down

0 comments on commit 6233ca5

Please sign in to comment.