mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 02:48:38 -04:00
Increasing Singlefile header size because some URLs may be very long.
This commit is contained in:
parent
cdc02ecaf2
commit
ff292b6e3f
2 changed files with 2 additions and 2 deletions
|
|
@ -507,7 +507,7 @@ def is_singlefile_file(path: pathlib.Path) -> bool:
|
|||
return True
|
||||
with path.open('rt') as fh:
|
||||
# Lastly, try to read the header of this HTML file.
|
||||
header = fh.read(500)
|
||||
header = fh.read(1000)
|
||||
if SINGLEFILE_HEADER in header:
|
||||
return True
|
||||
return False
|
||||
|
|
|
|||
|
|
@ -149,7 +149,7 @@ class Archive(Base, ModelHelper):
|
|||
raise ValueError('Cannot read singlefile data when this has no files')
|
||||
|
||||
with path.open('rt') as fh:
|
||||
head = fh.read(500)
|
||||
head = fh.read(1000)
|
||||
if 'Page saved with SingleFile' not in head:
|
||||
return
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue