xhr: xhr: include cookies in the XHR response header (#4543)

This commit is contained in:
Dragomir Ivanov
2017-07-24 17:37:54 +03:00
committed by Alexander Vakrilov
parent 43b21ce7e7
commit 1f9a64e908

View File

@@ -200,10 +200,7 @@ export class XMLHttpRequest {
let result = "";
for (let i in this._headers) {
// Cookie headers are excluded
if (i !== "set-cookie" && i !== "set-cookie2") {
result += i + ": " + this._headers[i] + "\r\n";
}
result += i + ": " + this._headers[i] + "\r\n";
}
return result.substr(0, result.length - 2);
}