Fix wrong image url
This commit is contained in:
parent
a4d6d7d2d2
commit
4059c6c6c6
|
@ -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}}))
|
||||
|
|
Loading…
Reference in New Issue
Block a user