We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed8d997 commit e6cdfe5Copy full SHA for e6cdfe5
lib/common/callback.js
@@ -20,7 +20,7 @@ exports.encodeCallback = function encodeCallback(reqParams, options) {
20
if (options.callback.customValue) {
21
const callbackVar = {};
22
Object.keys(options.callback.customValue).forEach((key) => {
23
- callbackVar[`x:${key}`] = options.callback.customValue[key];
+ callbackVar[`x:${key}`] = options.callback.customValue[key].toString();
24
});
25
reqParams.headers['x-oss-callback-var'] = Buffer.from(JSON.stringify(callbackVar)).toString('base64');
26
}
0 commit comments