Ticket #6507: django_http_init_11315.patch

File django_http_init_11315.patch, 588 bytes (added by QingFeng, 15 years ago)
  • django/http/__init__.py

     
    256256        c.load(cookie)
    257257    except CookieError:
    258258        # Invalid cookie
    259         return {}
     259        # return {}
     260        pass
    260261
    261262    cookiedict = {}
    262263    for key in c.keys():
    263         cookiedict[key] = c.get(key).value
     264        try:
     265            cookiedict[key] = c.get(key).value
     266        except:
     267            pass
    264268    return cookiedict
    265269
    266270class BadHeaderError(ValueError):
Back to Top