Skip to content

Commit 9d47364

Browse files
committed
set content-type for manifests.txt
By default S3 treats uploaded files without a content-type as binary blobs, which results in the browser downloading it when visiting the URL. Setting the content-type to text/plain lets the browser render it.
1 parent 27ac1b6 commit 9d47364

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -744,6 +744,7 @@ impl Context {
744744
.arg(manifest.path())
745745
.args(["--bucket", &self.config.upload_bucket])
746746
.args(["--key", "manifests.txt"])
747+
.args(["--content-type", "text/plain"])
747748
// Fail the request if the manifest was already modified by something else (for
748749
// example, another release running in parallel).
749750
.args([conditional_header, &conditional_value]))?;

0 commit comments

Comments
 (0)