mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	| @@ -47,10 +47,10 @@ class HandlerTests(TestCase): | ||||
|         """ | ||||
|         environ = RequestFactory().get('/').environ | ||||
|         raw_query_strings = [ | ||||
|             b'want=caf%C3%A9', # This is the proper way to encode 'café' | ||||
|             b'want=caf\xc3\xa9', # UA forgot to quote bytes | ||||
|             b'want=caf%E9', # UA quoted, but not in UTF-8 | ||||
|             b'want=caf\xe9', # UA forgot to convert Latin-1 to UTF-8 and to quote (typical of MSIE) | ||||
|             b'want=caf%C3%A9',  # This is the proper way to encode 'café' | ||||
|             b'want=caf\xc3\xa9',  # UA forgot to quote bytes | ||||
|             b'want=caf%E9',  # UA quoted, but not in UTF-8 | ||||
|             b'want=caf\xe9',  # UA forgot to convert Latin-1 to UTF-8 and to quote (typical of MSIE) | ||||
|         ] | ||||
|         got = [] | ||||
|         for raw_query_string in raw_query_strings: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user