From 203c39ab7a838a3a5ed43271d9d2935007ff4ff1 Mon Sep 17 00:00:00 2001 From: David Rose Date: Wed, 3 Oct 2007 22:45:30 +0000 Subject: [PATCH] minor cookie domain issue --- panda/src/downloader/httpCookie.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/panda/src/downloader/httpCookie.cxx b/panda/src/downloader/httpCookie.cxx index dc06f7da1d..3777273e25 100644 --- a/panda/src/downloader/httpCookie.cxx +++ b/panda/src/downloader/httpCookie.cxx @@ -210,6 +210,12 @@ parse_cookie_param(const string ¶m, bool first_param) { } else if (key == "domain") { _domain = HTTPChannel::downcase(value); + // From RFC 2965: If an explicitly specified value does not + // start with a dot, the user agent supplies a leading dot. + if (!_domain.empty() && _domain[0] != '.') { + _domain = string(".") + _domain; + } + } else if (key == "secure") { _secure = true;