Failed to set http request headers - fixes #32

This commit is contained in:
Nicholas O'Leary 2013-10-02 19:42:52 +01:00
parent d332600149
commit eafc1e4f5d
1 changed files with 1 additions and 1 deletions

View File

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