Skip to content

Commit

Permalink
Revert the content type, which we don't use anyway
Browse files Browse the repository at this point in the history
For the purposes of storing opaque docs, the only header we care about
is content-encoding. For us, the default content-type of
"application/octet-stream" is fine.

Signed-off-by: Jim Crossley <[email protected]>
  • Loading branch information
jcrossley3 authored and ctron committed Oct 29, 2024
1 parent 6f908eb commit fe35933
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions modules/storage/src/service/s3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,7 @@ impl StorageBackend for S3Backend {
let result = file.result();

self.bucket
.put_object_stream_with_content_type(
&mut source,
result.key().to_string(),
"application/json",
)
.put_object_stream(&mut source, result.key().to_string())
.await
.map_err(Error::S3)?;

Expand Down

0 comments on commit fe35933

Please sign in to comment.