diff --git a/CHANGELOG.md b/CHANGELOG.md index b8c8936c..6dceed5c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ The change log shows what have been Added, Changed, Deprecated and Removed between versions. +## 1.0.1 + +### Fixed + +- Fixed issue with multiple cookies. +- Fixed `ContentTypeMiddleware` missing return. + ## 1.0.0 ### Changed diff --git a/lib/Middleware/Cookie/CookieJar.php b/lib/Middleware/Cookie/CookieJar.php index 4d7f2863..c0ca23be 100644 --- a/lib/Middleware/Cookie/CookieJar.php +++ b/lib/Middleware/Cookie/CookieJar.php @@ -95,11 +95,10 @@ public function clearExpiredCookies(): void private function getHash(Cookie $cookie): string { return sha1(sprintf( - '%s|%s|%s|%s', + '%s|%s|%s', $cookie->getName(), - $cookie->getAttribute('domain'), - $cookie->getAttribute('path'), - $cookie->getAttribute('http') + $cookie->getAttribute(Cookie::ATTR_DOMAIN), + $cookie->getAttribute(Cookie::ATTR_PATH) )); } }