Skip to content

Commit

Permalink
Try adding content disposition to htm diffs
Browse files Browse the repository at this point in the history
  • Loading branch information
Myoldmopar committed Aug 4, 2022
1 parent c721e53 commit 918fd05
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion epregressions/diffs/ci_compare_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,10 @@ def main_function(file_name, base_dir, mod_dir, base_sha, mod_sha, make_public,
htmlkey = boto.s3.key.Key(bucket, file_path + ".html")

if file_path_to_send.endswith('.htm'):
htmlkey.set_contents_from_string(contents)
htmlkey.set_contents_from_string(
contents,
headers={"Content-Type": "text/html", "Content-Disposition": "inline"}
)
else:
htmlkey.set_contents_from_string(
"""
Expand Down

0 comments on commit 918fd05

Please sign in to comment.