[issue1564508] RFC 2965 BaseCookie does not support "$Port"
report at bugs.python.org
Thu May 28 02:02:09 CEST 2009
Ben Anhalt <ben.anhalt at gmail.com> added the comment:
Actually, I was just bit by this. In fact, RFC 2965 prohibits clients
from sending $Port if the port attribute was not included in the
Set-Cookie header. But, it turns out that the mono System.Net library
(at least) will add the attribute any time the URI includes a
non-default port number. See http://go-mono.com/forums/#nabble-f1367 I
think this is technically their bug, but it might be nice to have
something like a non-strict mode in Cookie.py that would ignore
unexpected attributes for handling cases like this.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list