Skip to content

Commit

Permalink
Allow HeaderMap to be cloned (actix#1014)
Browse files Browse the repository at this point in the history
* Allow HeaderMap to be cloned

* Add entry to changelog
  • Loading branch information
svenstaro authored and fafhrd91 committed Jul 29, 2019
1 parent 81ab37f commit 511026c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions actix-http/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## [0.2.8] - 2019-07-xx

### Changed

* Add `Clone` impl for `HeaderMap`

### Fixed

* Invalid response with compression middleware enabled, but compression-related features disabled #997
Expand Down
4 changes: 2 additions & 2 deletions actix-http/src/header/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ use http::HttpTryFrom;
/// `HeaderMap` is an multimap of [`HeaderName`] to values.
///
/// [`HeaderName`]: struct.HeaderName.html
#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct HeaderMap {
pub(crate) inner: HashMap<HeaderName, Value>,
}

#[derive(Debug)]
#[derive(Debug, Clone)]
pub(crate) enum Value {
One(HeaderValue),
Multi(Vec<HeaderValue>),
Expand Down

0 comments on commit 511026c

Please sign in to comment.