Skip to content

Commit e6cdfe5

Browse files
taotao7xt01102058
and
xt01102058
authoredJul 26, 2022
fix: to fix callback customValue (#1126)
Co-authored-by: xt01102058 <xt01102058@alibaba-inc.com>
1 parent ed8d997 commit e6cdfe5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/common/callback.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ exports.encodeCallback = function encodeCallback(reqParams, options) {
2020
if (options.callback.customValue) {
2121
const callbackVar = {};
2222
Object.keys(options.callback.customValue).forEach((key) => {
23-
callbackVar[`x:${key}`] = options.callback.customValue[key];
23+
callbackVar[`x:${key}`] = options.callback.customValue[key].toString();
2424
});
2525
reqParams.headers['x-oss-callback-var'] = Buffer.from(JSON.stringify(callbackVar)).toString('base64');
2626
}

0 commit comments

Comments
 (0)
Please sign in to comment.