From a446aa565552a3545b3ebe69db50d1de164315f6 Mon Sep 17 00:00:00 2001 From: youkunhuang Date: Mon, 15 Oct 2018 13:50:56 +0800 Subject: [PATCH] chore(ajax): revert default ua for ajax --- bin/tsw/ajax/ajax.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/tsw/ajax/ajax.js b/bin/tsw/ajax/ajax.js index d53114b3..2f4d465b 100644 --- a/bin/tsw/ajax/ajax.js +++ b/bin/tsw/ajax/ajax.js @@ -267,8 +267,7 @@ Ajax.prototype.doRequest = function(opt) { }, this._proxyRequest.headers, { - 'x-forwarded-for': httpUtil.getUserIp(this._proxyRequest), - 'user-agent': 'User-Agent, TSW/ajax' + 'x-forwarded-for': httpUtil.getUserIp(this._proxyRequest) }, opt.headers );