Ticket #3304: python.diff

File python.diff, 1.1 KB (added by arvin, 18 years ago)

Patch for python

  • Lib/Cookie.py

     
    408408    # For historical reasons, these attributes are also reserved:
    409409    #   expires
    410410    #
     411    # This is an extension from Microsoft, see
     412    # http://msdn.microsoft.com/workshop/author/dhtml/httponly_cookies.asp:
     413    #   httponly
     414    #
    411415    # This dictionary provides a mapping from the lowercase
    412416    # variant on the left to the appropriate traditional
    413417    # formatting on the right.
     
    417421                   "domain"      : "Domain",
    418422                   "max-age" : "Max-Age",
    419423                   "secure"      : "secure",
     424                   "httponly"  : "httponly",
    420425                   "version" : "Version",
    421426                   }
    422427
     
    499504                RA("%s=%d" % (self._reserved[K], V))
    500505            elif K == "secure":
    501506                RA(str(self._reserved[K]))
     507            elif K == "httponly":
     508                RA(str(self._reserved[K]))
    502509            else:
    503510                RA("%s=%s" % (self._reserved[K], V))
    504511
Back to Top