Skip to content

Commit 40c72a4

Browse files
authored
storage: Adjust content types for version downloads archive files (#9295)
1 parent 403e7a2 commit 40c72a4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/storage.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ impl Storage {
126126
match &config.backend {
127127
StorageBackend::S3 { default, index } => {
128128
let options = ClientOptions::default()
129+
// Apply default content types for the version downloads archive
130+
.with_content_type_for_suffix("html", "text/html")
131+
.with_content_type_for_suffix("json", "application/json")
132+
.with_content_type_for_suffix("csv", "text/csv")
129133
// The `BufWriter::new()` API currently does not allow
130134
// specifying any file attributes, so we need to set the
131135
// content type here instead for the database dump upload.

0 commit comments

Comments
 (0)