Ticket #20809: urlencode_forced_bytes.diff

File urlencode_forced_bytes.diff, 518 bytes (added by stargrave@…, 11 years ago)

Forced bytes returning for urlencode

  • django/http/request.py

    diff --git a/django/http/request.py b/django/http/request.py
    index b7f9d24..e7d4370 100644
    a b class QueryDict(MultiValueDict):  
    400400            k = force_bytes(k, self.encoding)
    401401            output.extend([encode(k, force_bytes(v, self.encoding))
    402402                           for v in list_])
    403         return '&'.join(output)
     403        return force_bytes('&'.join(output))
    404404
    405405
    406406def build_request_repr(request, path_override=None, GET_override=None,
Back to Top