chore(revcord): remove println
This commit is contained in:
@@ -53,7 +53,6 @@ impl<'r> FromData<'r> for MessageBody<'r> {
|
|||||||
|
|
||||||
async fn from_data(req: &'r rocket::Request<'_>, data: Data<'r>) -> Outcome<'r, Self> {
|
async fn from_data(req: &'r rocket::Request<'_>, data: Data<'r>) -> Outcome<'r, Self> {
|
||||||
if let Some(content_type) = req.headers().get_one("content-type") {
|
if let Some(content_type) = req.headers().get_one("content-type") {
|
||||||
println!("{content_type}");
|
|
||||||
match content_type.split(';').next().unwrap() {
|
match content_type.split(';').next().unwrap() {
|
||||||
"application/json" => {
|
"application/json" => {
|
||||||
match Json::<MessagePostJson>::from_data(req, data).await {
|
match Json::<MessagePostJson>::from_data(req, data).await {
|
||||||
|
|||||||
Reference in New Issue
Block a user