Merge pull request #2453 from alexsdutton/data-and-files-none-data

Pass {} as data to DataAndFiles, as it ends up in a MergeDict
This commit is contained in:
Tom Christie 2015-01-23 18:03:40 +00:00
commit 0cb5acee75

View File

@ -250,7 +250,7 @@ class FileUploadParser(BaseParser):
None,
encoding)
if result is not None:
return DataAndFiles(None, {'file': result[1]})
return DataAndFiles({}, {'file': result[1]})
# This is the standard case.
possible_sizes = [x.chunk_size for x in upload_handlers if x.chunk_size]