Update readme

This commit is contained in:
David Pedersen
2021-06-01 12:12:01 +02:00
parent f690e74275
commit c0bf77cbe4
2 changed files with 68 additions and 31 deletions
+4 -1
View File
@@ -73,7 +73,10 @@ impl IntoResponse<Body> for &'static str {
impl IntoResponse<Body> for String {
fn into_response(self) -> Response<Body> {
Response::new(Body::from(self))
let mut res = Response::new(Body::from(self));
res.headers_mut()
.insert(header::CONTENT_TYPE, HeaderValue::from_static("text/plain"));
res
}
}