Cargo.toml: Updated base64 from 0.13 to 0.21.

This commit is contained in:
Jonathan Davies
2023-01-23 19:14:07 +00:00
parent 93c3f8fc8c
commit 36944f1839
13 changed files with 128 additions and 94 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
use std::sync::Arc;
use base64::prelude::*;
use http::header;
use hyper::{Body, Request, Response, StatusCode};
@@ -81,7 +82,7 @@ impl ReturnFormat {
.iter()
.map(|v| match v {
DvvsValue::Deleted => serde_json::Value::Null,
DvvsValue::Value(v) => serde_json::Value::String(base64::encode(v)),
DvvsValue::Value(v) => serde_json::Value::String(BASE64_STANDARD.encode(v)),
})
.collect::<Vec<_>>();
let json_body =