Skip to content

Commit

Permalink
feat: 请求增加版本 Header
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhongda0315 committed Aug 6, 2019
1 parent 69152c9 commit c20dfea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/request.js
Expand Up @@ -3,7 +3,7 @@ const utils = require('./utils');
const _ = utils.underscore;
const tplEngine = utils.tplEngine;
const sha1 = utils.sha1;

const Package = require('../package.json');
let config = {
appkey: '',
secret: '',
Expand All @@ -15,7 +15,8 @@ let config = {
let headers = {
Nonce: parseInt(Math.random() * 0xffffff),
Timestamp: Date.parse(new Date()) / 1000,
Signature: ''
Signature: '',
'User-Agent': 'rc-nodejs-sdk/' + Package.version
};

let CalcIndex = function (option) {
Expand Down

0 comments on commit c20dfea

Please sign in to comment.