~thirdplace/components

2fe03647efb782c28a14db3b2e950f65865660d7 — Dag 10 months ago 36518df
fix: cookie
1 files changed, 4 insertions(+), 0 deletions(-)

M src/http/Cookie.php
M src/http/Cookie.php => src/http/Cookie.php +4 -0
@@ 14,6 14,10 @@ final class Cookie
        $parts = explode(';', $cookieString);
        $nameAndValue = explode('=', $parts[0]);

        if (!isset($parts[1])) {
            throw new \Exception(sprintf('Unable to parse cookie string: %s', $cookieString));
        }

        return new self($nameAndValue[0], $nameAndValue[1]);
    }