(xhr: any)
| 93 | } |
| 94 | |
| 95 | public addCookies(xhr: any) { |
| 96 | const cookies = []; |
| 97 | |
| 98 | for (const [name, cookie] of this.cookies) { |
| 99 | cookies.push(`${name}=${cookie.value}`); |
| 100 | } |
| 101 | |
| 102 | if (cookies.length) { |
| 103 | xhr.setDisableHeaderCheck(true); |
| 104 | xhr.setRequestHeader("cookie", cookies.join("; ")); |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | public appendCookies(headers: Headers) { |
| 109 | for (const [name, cookie] of this.cookies) { |
no test coverage detected