view roundup/anypy/cookie_.py @ 4586:b21bb66de6ff

Mark cookies HttpOnly and -- if https is used -- secure. Fixes issue2550689, but is untested if this really works in browsers.
author Ralf Schlatterbeck <rsc@runtux.com>
date Thu, 23 Feb 2012 14:55:35 +0100
parents 74476eaac38a
children dfd0bcc947e5
line wrap: on
line source


try:
    from http import cookies as Cookie
    from http.cookies import CookieError, BaseCookie, SimpleCookie
    from http.cookies import _getdate as get_cookie_date
except:
    from Cookie import CookieError, BaseCookie, SimpleCookie
    from Cookie import _getdate as get_cookie_date

Roundup Issue Tracker: http://roundup-tracker.org/