This commit is contained in:
Philippe Teuwen 2024-11-07 21:14:30 +01:00
parent 855bccf5b9
commit f65639aa3b

View file

@ -339,11 +339,11 @@ def fudanValidate(blk0, live=False):
hdr = "Content-Type: application/text; charset=utf-8" hdr = "Content-Type: application/text; charset=utf-8"
post = f"{blk0.replace(' ', '')}" post = f"{blk0.replace(' ', '')}"
lprint(f"\n Validator: `wget -q -O -" lprint(f"\n Validator:\n`wget -q -O -"
f" --header=\"{hdr}\"" f" --header=\"{hdr}\""
f" --post-data \"{post}\"" f" --post-data \"{post}\""
f" {url}" f" {url}"
" | json_pp`") " | json_pp`")
if live: if live:
# Warning, this import causes a "double free or corruption" crash if the script is called twice... # Warning, this import causes a "double free or corruption" crash if the script is called twice...