Fix wrong image url

This commit is contained in:
Kuba Orlik 2022-07-08 16:58:21 +02:00
parent a4d6d7d2d2
commit 4059c6c6c6

View File

@ -114,7 +114,7 @@ with Image.open(output_file) as im:
output_filename = domain.replace(".", "_") + "_" + output_suffix
im.save(output_dir + "/" + output_filename, "PNG")
print(json.dumps({"new_file":
{"url": base_url + "/static/" + output_file_relative,
{"url": base_url + "/static/" + os.path.dirname(output_file_relative) + "/" + output_filename,
"domain": domain,
"found_headers": found_needles,
"filename": output_filename}}))