aboutsummaryrefslogtreecommitdiff
path: root/maintainers
diff options
context:
space:
mode:
authorRok Garbas <rok@garbas.si>2020-08-20 13:21:22 +0200
committerRok Garbas <rok@garbas.si>2020-08-20 13:21:22 +0200
commit8ce88adad9728142e1f11f7e00d2f31925f8fdd1 (patch)
tree882ce7169a44bb1589a66cf865b4f14e1ef60aa1 /maintainers
parent0d7376bd8a790da9e7c888d4330cfb17928c68d8 (diff)
set Content-Type to "text/plain" for install script
fixes #3947
Diffstat (limited to 'maintainers')
-rwxr-xr-xmaintainers/upload-release.pl11
1 files changed, 10 insertions, 1 deletions
diff --git a/maintainers/upload-release.pl b/maintainers/upload-release.pl
index 91ae896d6..6f3882a12 100755
--- a/maintainers/upload-release.pl
+++ b/maintainers/upload-release.pl
@@ -117,7 +117,16 @@ for my $fn (glob "$tmpDir/*") {
my $dstKey = "$releaseDir/" . $name;
unless (defined $releasesBucket->head_key($dstKey)) {
print STDERR "uploading $fn to s3://$releasesBucketName/$dstKey...\n";
- $releasesBucket->add_key_filename($dstKey, $fn)
+
+ my $configuration = ();
+ $configuration->{content_type} = "application/octet-stream";
+
+ if ($fn =~ /.sha256|.asc|install/) {
+ # Text files
+ $configuration->{content_type} = "text/plain";
+ }
+
+ $releasesBucket->add_key_filename($dstKey, $fn, $configuration)
or die $releasesBucket->err . ": " . $releasesBucket->errstr;
}
}