From 597923dff51553fd24c6682db4ba153bf765bad0 Mon Sep 17 00:00:00 2001 From: tacogips Date: Thu, 26 Aug 2021 21:48:27 +0900 Subject: [PATCH] remove trash --- Cargo.toml | 2 +- src/cors/service.rs | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index a5ec948..1846cff 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "axum-cors" -version = "0.0.1" +version = "0.0.2" edition = "2018" license = "MIT" categories = ["asynchronous", "network-programming", "web-programming"] diff --git a/src/cors/service.rs b/src/cors/service.rs index efc3c03..36734ef 100644 --- a/src/cors/service.rs +++ b/src/cors/service.rs @@ -123,8 +123,6 @@ where let mut response = http::Response::new(http_body::Full::new(Bytes::new())); *response.status_mut() = StatusCode::FORBIDDEN; - //TODO() - println!("{:?} {:?}", "aaa", headers); if let Some(headers) = headers.take() { *response.status_mut() = StatusCode::NO_CONTENT; *response.headers_mut() = headers;