all strings for json
This commit is contained in:
parent
babd215e69
commit
89853e24e5
@ -31,9 +31,14 @@ pub async fn health(
|
|||||||
|
|
||||||
#[debug_handler]
|
#[debug_handler]
|
||||||
pub async fn status_headers(headers: HeaderMap) -> impl IntoResponse {
|
pub async fn status_headers(headers: HeaderMap) -> impl IntoResponse {
|
||||||
let headers: HashMap<Option<String>, String> = headers
|
let headers: HashMap<String, String> = headers
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.map(|(k, v)| (k.map(|k| k.to_string()), format!("{:?}", v)))
|
.map(|(k, v)| {
|
||||||
|
(
|
||||||
|
k.map(|k| k.to_string()).unwrap_or_default(),
|
||||||
|
format!("{:?}", v),
|
||||||
|
)
|
||||||
|
})
|
||||||
.collect();
|
.collect();
|
||||||
|
|
||||||
let body = json!({ "headers": headers });
|
let body = json!({ "headers": headers });
|
||||||
|
Loading…
Reference in New Issue
Block a user