Skip to content

Commit 85144c5

Browse files
authored
Display invalid content-type content. (#386)
1 parent ba9f902 commit 85144c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/s3s/src/ops/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ fn extract_mime(hs: &OrderedHeaders<'_>) -> S3Result<Option<Mime>> {
154154

155155
match content_type.parse::<Mime>() {
156156
Ok(x) => Ok(Some(x)),
157-
Err(e) => Err(invalid_request!(e, "invalid content type")),
157+
Err(e) => Err(invalid_request!(e, "invalid content type: {content_type:?}")),
158158
}
159159
}
160160

0 commit comments

Comments
 (0)