Commit 95f4ca46 authored by echicken's avatar echicken
Browse files

That 'this' was not the 'this' that your 'self' was looking for there then.

May resolve the error reported by Bill McGarrity (this.extra_headers is
undefined).
parent 2a1d3c2d
...@@ -49,7 +49,7 @@ HTTPRequest.prototype.AddExtraHeaders = function () { ...@@ -49,7 +49,7 @@ HTTPRequest.prototype.AddExtraHeaders = function () {
var self = this; var self = this;
Object.keys(this.extra_headers).forEach( Object.keys(this.extra_headers).forEach(
function (e) { function (e) {
self.request_headers.push(e + ': ' + this.extra_headers[e]); self.request_headers.push(e + ': ' + self.extra_headers[e]);
} }
); );
}; };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment