Skip to content

Commit

Permalink
Set content type explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
Lol3rrr committed Oct 30, 2023
1 parent 31a8caf commit ee38a72
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ reqwest = { version = "0.11.18", default_features = false, features = ["json", "
serde = { version = "1.0.180", features = ["derive"] }
serde_json = "1.0.104"
serenity = { version = "0.11.6", features = ["cache"] }
tokio = { version = "1.29.1", features = ["rt", "macros"] }
tokio = { version = "1.33.0", default_features = false, features = ["rt", "macros"] }
tracing = { version = "0.1.37", features = ["async-await"] }
tracing-subscriber = "0.3.17"
rust_xlsxwriter = { version = "0.44" }
Expand Down
4 changes: 2 additions & 2 deletions src/storage/s3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pub struct S3Storage {
}

impl S3Storage {
pub fn new(bucket: s3::Bucket) -> Self {
pub fn new(mut bucket: s3::Bucket) -> Self {
Self {
bucket,
filename: "storage.json".to_string(),
Expand All @@ -29,7 +29,7 @@ impl StorageBackend for S3Storage {

tracing::trace!("Storing to S3 Bucket");

let res = bucket.put_object(&filename, &content);
let res = bucket.put_object_with_content_type(&filename, &content, "application/json");

match res.await {
Ok(_) => Ok(()),
Expand Down

0 comments on commit ee38a72

Please sign in to comment.