diff --git a/poem/src/web/cookie.rs b/poem/src/web/cookie.rs index 94c8fa55da..a241778b47 100644 --- a/poem/src/web/cookie.rs +++ b/poem/src/web/cookie.rs @@ -328,6 +328,12 @@ impl<'a> FromRequest<'a> for Cookie { } } +impl From> for Cookie { + fn from(value: libcookie::Cookie<'static>) -> Self { + Self(value) + } +} + /// A collection of cookies that tracks its modifications. /// /// # Example