mirror of https://github.com/lukechilds/node.git
Browse Source
For the `request()` and `get()` functions. I could never really understand why these two functions go through agent first... Especially since the user could be passing `agent: false` or a different Agent instance completely, in which `globalAgent` will be completely bypassed. Moved the relevant logic from `Agent#request()` into the `ClientRequest` constructor. Incidentally, this commit fixes #7012 (which was the original intent of this commit).v0.11.12-release
Nathan Rajlich
11 years ago
3 changed files with 43 additions and 10 deletions
Loading…
Reference in new issue