Skip to content

Commit

Permalink
Merge pull request #4 from seanpianka/master
Browse files Browse the repository at this point in the history
Update to Routerify v2
  • Loading branch information
seanpianka authored Mar 29, 2021
2 parents 58bd765 + b37af15 commit 3082ef2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 44 deletions.
9 changes: 4 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "routerify-cors"
version = "1.1.0"
version = "2.0.0"
description = "A Routerify middleware which enables CORS."
homepage = "https://github.com/routerify/routerify-cors"
repository = "https://github.com/routerify/routerify-cors"
Expand All @@ -12,9 +12,8 @@ license = "MIT"
edition = "2018"

[dependencies]
routerify = "1.1"
hyper = "0.13"
routerify = "2"
hyper = "0.14"

[dev-dependencies]
tokio = { version = "0.2", features = ["full"] }
stream-body = "0.1"
tokio = { version = "1", features = ["full"] }
39 changes: 0 additions & 39 deletions examples/test_stream_body.rs

This file was deleted.

1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ where
headers.insert(header::ACCESS_CONTROL_ALLOW_ORIGIN, HeaderValue::from_static("*"));
headers.insert(header::ACCESS_CONTROL_ALLOW_METHODS, HeaderValue::from_static("*"));
headers.insert(header::ACCESS_CONTROL_ALLOW_HEADERS, HeaderValue::from_static("*"));
headers.insert(header::ACCESS_CONTROL_EXPOSE_HEADERS, HeaderValue::from_static("*"));

Ok(res)
}

0 comments on commit 3082ef2

Please sign in to comment.