HTTPRequest: custom headers not passed on

This commit is contained in:
Nicholas O'Leary 2013-10-20 00:09:15 +01:00
parent f8e8bf22c0
commit 778e0d2086
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ function HTTPRequest(n) {
var opts = urllib.parse(msg.url||url);
opts.method = (msg.method||method).toUpperCase();
if (msg.headers) {
opts.header = msg.headers;
opts.headers = msg.headers;
}
var req = httplib.request(opts,function(res) {
res.setEncoding('utf8');