mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-10 19:56:59 +03:00
Removed encode from test
Django does not produce such a decoding by default, this test was not honest.
This commit is contained in:
parent
4b3eb6e0b0
commit
063addabfe
|
@ -96,7 +96,7 @@ class TestFileUploadParser(TestCase):
|
|||
request = MockRequest()
|
||||
request.upload_handlers = (MemoryFileUploadHandler(),)
|
||||
request.META = {
|
||||
'HTTP_CONTENT_DISPOSITION': 'Content-Disposition: inline; filename=file.txt'.encode('utf-8'),
|
||||
'HTTP_CONTENT_DISPOSITION': 'Content-Disposition: inline; filename=file.txt',
|
||||
'HTTP_CONTENT_LENGTH': 14,
|
||||
}
|
||||
self.parser_context = {'request': request, 'kwargs': {}}
|
||||
|
|
Loading…
Reference in New Issue
Block a user