'Detect and drop busted `Cookie` headers
We get all sorts of invalid `Cookie` headers. Just one example:
Cookie: fo,o=bar; expires=1;
Normally you\'d do this in middleware, but `webob.cookie`\'s API
is fairly volatile while `webob.request`\'s isn\'t. It\'s easier to
do this once we\'ve got a valid `Request` object.'

def fix_cookie_header(self):

    try:
        request.cookies
    except (CookieError, KeyError):
        cookie_val = request.environ.get('HTTP_COOKIE', '')
        request.environ['HTTP_COOKIE'] = ''
        g.log.warning(('Cleared    bad    cookie    header:    %r' % cookie_val))
        g.stats.simple_event('cookie.bad_cookie_header')
