fix header building newline

This commit is contained in:
simon 2022-06-20 18:37:02 +07:00
parent adc37f4f5d
commit fa0fecffcf
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
1 changed files with 4 additions and 3 deletions

View File

@ -151,9 +151,9 @@ async function sendCookies() {
let cookieStores = await browserType.cookies.getAllCookieStores();
var cookieLines = [
"# Netscape HTTP Cookie File\n",
"# https://curl.haxx.se/rfc/cookie_spec.html\n",
"# This is a generated file! Do not edit.\n\n"
"# Netscape HTTP Cookie File",
"# https://curl.haxx.se/rfc/cookie_spec.html",
"# This is a generated file! Do not edit.\n"
];
for (let i = 0; i < cookieStores.length; i++) {
const cookieStore = cookieStores[i];
@ -166,6 +166,7 @@ async function sendCookies() {
cookieLines.push(buildCookieLine(cookie));
}
}
console.log(cookieLines.length);
console.log(cookieLines.join("\n"));
}