Skip to content
This repository has been archived by the owner on Oct 2, 2022. It is now read-only.

Commit

Permalink
remove trash
Browse files Browse the repository at this point in the history
  • Loading branch information
tacogips committed Aug 26, 2021
1 parent da704a8 commit 597923d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"]
Expand Down
2 changes: 0 additions & 2 deletions src/cors/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 597923d

Please sign in to comment.