Skip to content

Instantly share code, notes, and snippets.

@kenperkins
Last active August 29, 2015 14:16
Show Gist options
  • Save kenperkins/7b19f5ce6b2f20dcb593 to your computer and use it in GitHub Desktop.
Save kenperkins/7b19f5ce6b2f20dcb593 to your computer and use it in GitHub Desktop.
setHeader issue with node 0.12 and io.js 1.3.0
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