mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
xhr: xhr: include cookies in the XHR response header (#4543)
This commit is contained in:
committed by
Alexander Vakrilov
parent
43b21ce7e7
commit
1f9a64e908
@@ -200,10 +200,7 @@ export class XMLHttpRequest {
|
|||||||
let result = "";
|
let result = "";
|
||||||
|
|
||||||
for (let i in this._headers) {
|
for (let i in this._headers) {
|
||||||
// Cookie headers are excluded
|
result += i + ": " + this._headers[i] + "\r\n";
|
||||||
if (i !== "set-cookie" && i !== "set-cookie2") {
|
|
||||||
result += i + ": " + this._headers[i] + "\r\n";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return result.substr(0, result.length - 2);
|
return result.substr(0, result.length - 2);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user