This commit is contained in:
Miroslav Stampar
2023-08-19 10:24:20 +02:00
parent ccc38abff6
commit a7cf68f243
2 changed files with 2 additions and 1 deletions

View File

@@ -5079,6 +5079,7 @@ def resetCookieJar(cookieJar):
logger.info(infoMsg)
content = readCachedFileContent(conf.loadCookies)
content = re.sub("(?im)^#httpOnly_", "", content)
lines = filterNone(line.strip() for line in content.split("\n") if not line.startswith('#'))
handle, filename = tempfile.mkstemp(prefix=MKSTEMP_PREFIX.COOKIE_JAR)
os.close(handle)