mirror of https://github.com/lukechilds/got.git
Browse Source
Overall it is a bad practice to 'fix' internal modules within the other module. I think graceful-fs (https://github.com/isaacs/node-graceful-fs#global-patching) is good example, how to do this: ```js var http = require('http'); var https = requrie('https'); var infinityAgent = require('infinity-agent'); infinityAgent.patch(http); infinityAgent.patch(https); ``` This will enable global agent tuning in edge cases. Closes #73 and closes #60http2
Vsevolod Strukchinsky
10 years ago
2 changed files with 13 additions and 35 deletions
Loading…
Reference in new issue