mirror of
https://github.com/actix/actix-extras.git
synced 2025-03-20 20:05:18 +01:00
Fix expose_any_header setter (#143)
This commit is contained in:
parent
699846d965
commit
cf970ee091
@ -1,7 +1,9 @@
|
|||||||
# Changes
|
# Changes
|
||||||
|
|
||||||
## Unreleased - 2020-xx-xx
|
## Unreleased - 2020-xx-xx
|
||||||
|
* Fix `expose_any_header` method, now set the correct field. [#143]
|
||||||
|
|
||||||
|
[#143]: https://github.com/actix/actix-extras/pull/143
|
||||||
|
|
||||||
## 0.5.3 - 2020-11-19
|
## 0.5.3 - 2020-11-19
|
||||||
* Fix version spec for `derive_more` dependency.
|
* Fix version spec for `derive_more` dependency.
|
||||||
|
@ -318,7 +318,7 @@ impl Cors {
|
|||||||
/// See [`Cors::expose_headers`] for more info on exposed response headers.
|
/// See [`Cors::expose_headers`] for more info on exposed response headers.
|
||||||
pub fn expose_any_header(mut self) -> Cors {
|
pub fn expose_any_header(mut self) -> Cors {
|
||||||
if let Some(cors) = cors(&mut self.inner, &self.error) {
|
if let Some(cors) = cors(&mut self.inner, &self.error) {
|
||||||
cors.allowed_origins = AllOrSome::All;
|
cors.expose_headers = AllOrSome::All;
|
||||||
}
|
}
|
||||||
|
|
||||||
self
|
self
|
||||||
|
Loading…
x
Reference in New Issue
Block a user