dont crash chrome with too many unique SVGs

This commit is contained in:
ed
2022-09-11 11:47:26 +02:00
parent 0006f933a2
commit 1684d05d49
3 changed files with 55 additions and 7 deletions

View File

@@ -1846,7 +1846,9 @@ class HttpCli(object):
if len(ext) > 11:
ext = "" + ext[-9:]
mime, ico = self.ico.get(ext, not exact)
# chrome cannot handle more than ~2000 unique SVGs
chrome = " rv:" not in self.ua
mime, ico = self.ico.get(ext, not exact, chrome)
dt = datetime.utcfromtimestamp(self.E.t0)
lm = dt.strftime("%a, %d %b %Y %H:%M:%S GMT")