Skip to content

Commit cd90651

Browse files
普冬peze
authored andcommitted
add version & action in rpc header
1 parent d02459d commit cd90651

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/rpc.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,9 @@ class RPCClient {
143143
opts = Object.assign({
144144
headers: {
145145
'x-sdk-client': helper.DEFAULT_CLIENT,
146-
'user-agent': helper.DEFAULT_UA
146+
'user-agent': helper.DEFAULT_UA,
147+
'x-acs-action': action,
148+
'x-acs-version': this.apiVersion
147149
}
148150
}, this.opts, opts);
149151

0 commit comments

Comments
 (0)