Skip to content

Commit 821f01c

Browse files
committed
Merge pull request #53 from ikbear/feature/support_returnbody
Add custom return body support
2 parents 0276580 + 55d71ce commit 821f01c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/auth.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ function PutPolicy(opts) {
4343
this.customer = opts.customer || null;
4444
this.escape = opts.escape || 0;
4545
this.asyncOps = opts.asyncOps || null;
46+
this.returnBody = opts.returnBody || null;
4647
}
4748

4849
PutPolicy.prototype.token = function() {
@@ -67,6 +68,9 @@ PutPolicy.prototype.token = function() {
6768
if (this.escape) {
6869
params["escape"] = this.excape;
6970
}
71+
if (this.returnBody !== null) {
72+
params["returnBody"] = this.returnBody;
73+
}
7074
return generateToken(params);
7175
};
7276

0 commit comments

Comments
 (0)