Code

Ticket #14020: srsly.patch

File srsly.patch, 506 bytes (added by schmichael, 4 years ago)
  • django/http/__init__.py

     
    368368    def items(self): 
    369369        return self._headers.values() 
    370370 
    371     def get(self, header, alternate): 
     371    def get(self, header, alternate=None): 
    372372        return self._headers.get(header.lower(), (None, alternate))[1] 
    373373 
    374374    def set_cookie(self, key, value='', max_age=None, expires=None, path='/',