Ticket #6308: against_post_heaping_patch.diff

File against_post_heaping_patch.diff, 696 bytes (added by Yasushi Masuda <whosaysni@…>, 7 years ago)

A patch fixing POST data heaping

  • django/http/__init__.py

     
    174174    def __deepcopy__(self, memo={}):
    175175        import copy
    176176        result = self.__class__('', mutable=True)
    177         memo[id(self)] = result
     177        m = dict(memo.items())
     178        m[id(self)] = result
    178179        for key, value in dict.items(self):
    179             dict.__setitem__(result, copy.deepcopy(key, memo), copy.deepcopy(value, memo))
     180            dict.__setitem__(result, copy.deepcopy(key, m), copy.deepcopy(value, m))
    180181        return result
    181182
    182183    def setlist(self, key, list_):
Back to Top