[dl:http] improve HTML signature check (#7697)
https://github.com/mikf/gallery-dl/issues/7697#issuecomment-2990734451 ignore leading whitespace
This commit is contained in:
@@ -370,6 +370,7 @@ SAMPLES = {
|
||||
("heic", b"????ftypheix"),
|
||||
("svg" , b"<?xml"),
|
||||
("html", b"<!DOCTYPE html><html>...</html>"),
|
||||
("html", b" \n \n\r\t\n <!DOCTYPE html><html>...</html>"),
|
||||
("ico" , b"\x00\x00\x01\x00"),
|
||||
("cur" , b"\x00\x00\x02\x00"),
|
||||
("psd" , b"8BPS"),
|
||||
|
||||
Reference in New Issue
Block a user