diff --git a/CHANGELOG.md b/CHANGELOG.md index e189d618..48f74d6a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ +# 1.2.0 (December 3, 2024) + +* Add `StatusCode::TOO_EARLY` constant for 425 status. +* Loosen `TryFrom` for `HeaderMap` to work with any state generic. +* Change `Builder` methods to use `TryInto` instead of `TryFrom` arguments. +* Make `StatusCode::as_u16` a `const` function. +* Fix `Method` parsing to allow `#$%&'` characters. +* Fix `HeaderName` parsing to reject `"` characters. +* Fix off by 1 error in `Method::from_bytes` that could cause extra allocations. + # 1.1.0 (March 4, 2024) * Add methods to allow trying to allocate in the `HeaderMap`, returning an error if oversize instead of panicking. diff --git a/Cargo.toml b/Cargo.toml index 487507f0..1a6e9c9d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ name = "http" # - Update html_root_url in lib.rs. # - Update CHANGELOG.md. # - Create git tag -version = "1.1.0" +version = "1.2.0" readme = "README.md" documentation = "https://docs.rs/http" repository = "https://github.com/hyperium/http"