Skip to content

Commit d29e15f

Browse files
committed
Merge branch 'release/v3.0.0'
2 parents 58bd765 + 1712874 commit d29e15f

File tree

4 files changed

+8
-47
lines changed

4 files changed

+8
-47
lines changed

Cargo.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "routerify-cors"
3-
version = "1.1.0"
3+
version = "3.0.0"
44
description = "A Routerify middleware which enables CORS."
55
homepage = "https://github.com/routerify/routerify-cors"
66
repository = "https://github.com/routerify/routerify-cors"
@@ -12,9 +12,8 @@ license = "MIT"
1212
edition = "2018"
1313

1414
[dependencies]
15-
routerify = "1.1"
16-
hyper = "0.13"
15+
routerify = "3"
16+
hyper = "0.14"
1717

1818
[dev-dependencies]
19-
tokio = { version = "0.2", features = ["full"] }
20-
stream-body = "0.1"
19+
tokio = { version = "1", features = ["full"] }

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ Add this to your `Cargo.toml`:
1515

1616
```toml
1717
[dependencies]
18-
routerify = "1.1"
19-
routerify-cors = "1.1"
18+
routerify = "3"
19+
routerify-cors = "3"
2020
```
21-
21+
2222
## Example
2323

2424
```rust

examples/test_stream_body.rs

Lines changed: 0 additions & 39 deletions
This file was deleted.

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ where
9494
headers.insert(header::ACCESS_CONTROL_ALLOW_ORIGIN, HeaderValue::from_static("*"));
9595
headers.insert(header::ACCESS_CONTROL_ALLOW_METHODS, HeaderValue::from_static("*"));
9696
headers.insert(header::ACCESS_CONTROL_ALLOW_HEADERS, HeaderValue::from_static("*"));
97+
headers.insert(header::ACCESS_CONTROL_EXPOSE_HEADERS, HeaderValue::from_static("*"));
9798

9899
Ok(res)
99100
}

0 commit comments

Comments
 (0)