Skip to content

Commit

Permalink
chore(ajax): add default user-agent for ajax
Browse files Browse the repository at this point in the history
  • Loading branch information
huangyoukun committed Oct 15, 2018
1 parent 5ca7ce4 commit cf6b21f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/tsw/ajax/ajax.js
Expand Up @@ -267,7 +267,8 @@ Ajax.prototype.doRequest = function(opt) {
},
this._proxyRequest.headers,
{
'x-forwarded-for': httpUtil.getUserIp(this._proxyRequest)
'x-forwarded-for': httpUtil.getUserIp(this._proxyRequest),
'user-agent': 'User-Agent, TSW/ajax'
},
opt.headers
);
Expand Down

0 comments on commit cf6b21f

Please sign in to comment.