Created
September 8, 2013 17:28
-
-
Save TooTallNate/6486704 to your computer and use it in GitHub Desktop.
node v0.11.7 Assertion Failure, caused by HTTP `agent: false`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var url = require('url'); | |
var http = require('http'); | |
var uri = 'http://nodejs.org'; | |
var parsed = url.parse(uri); | |
parsed.method = 'GET'; | |
// IMPORTANT! | |
parsed.agent = false; | |
http.get(parsed); |
Author
TooTallNate
commented
Sep 8, 2013
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment