Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

options.process is supported in get* but not supported in getStream #300

Closed
yi opened this issue Oct 2, 2017 · 0 comments
Closed

options.process is supported in get* but not supported in getStream #300

yi opened this issue Oct 2, 2017 · 0 comments

Comments

@yi
Copy link

yi commented Oct 2, 2017

options.process is supported in object.get but not supported in object.getStream

Although user can hack an options.subres to support process command in getSteam.

 44 
 45     options.subres = options.subres || {};
 46     options.subres['x-oss-process'] = options.process;
 48 
 49     
 50     co(function* () {
 51       var result = yield OssClient.getStream(remotePath, options);
 52       result.stream.pipe(res);
 53     }).catch(function (err) {
 54       console.log(err);
 55     });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant