This was changed in https://github.com/joyent/node/commit/979d0ca8 from @trevnorris, but it results in a crash on 0.12+, io.js 1.x+ whereas 0.10 was functional.
Last active
August 29, 2015 14:16
-
-
Save kenperkins/7b19f5ce6b2f20dcb593 to your computer and use it in GitHub Desktop.
setHeader issue with node 0.12 and io.js 1.3.0
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 http = require('http'); | |
function go(biff) { | |
var req = http.request({ | |
method: 'GET', | |
hostname : 'www.iojs.org', | |
port: 80, | |
path: '/', | |
headers: { | |
'foo-bar-baz': biff | |
} | |
}, function(res) { | |
console.dir(res); | |
}); | |
req.on('error', function(err) { | |
console.error(err); | |
}); | |
} | |
go(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment