mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
minor cookie domain issue
This commit is contained in:
parent
6d2fa2fcb2
commit
203c39ab7a
@ -210,6 +210,12 @@ parse_cookie_param(const string ¶m, bool first_param) {
|
|||||||
} else if (key == "domain") {
|
} else if (key == "domain") {
|
||||||
_domain = HTTPChannel::downcase(value);
|
_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") {
|
} else if (key == "secure") {
|
||||||
_secure = true;
|
_secure = true;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user