mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-16 00:00:18 +02:00
feat: default to charset=utf-8 for text content type (#554)
* feat: default to charset=utf-8 for text content type * added changelog && fix comment * fix workflow
This commit is contained in:
@@ -81,7 +81,7 @@ mod tests {
|
||||
Request::builder()
|
||||
.method(http::Method::POST)
|
||||
.uri("/json")
|
||||
.header(http::header::CONTENT_TYPE, "application/json")
|
||||
.header(http::header::CONTENT_TYPE, mime::APPLICATION_JSON.as_ref())
|
||||
.body(Body::from(
|
||||
serde_json::to_vec(&json!([1, 2, 3, 4])).unwrap(),
|
||||
))
|
||||
|
||||
Reference in New Issue
Block a user