Merge pull request #104 from macbre/patch-1

request.js: remove unneeded input.agent
This commit is contained in:
David Frank 2016-04-13 13:13:50 +08:00
commit 02def98f5c
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ function Request(input, init) {
init.compress : input.compress !== undefined ?
input.compress : true;
this.counter = init.counter || input.counter || input.follow || 0;
this.agent = init.agent || input.agent || input.agent;
this.agent = init.agent || input.agent;
Body.call(this, init.body || this._clone(input), {
timeout: init.timeout || input.timeout || 0,