Add media_type to example file parser

This commit is contained in:
Tom Christie 2012-11-08 20:43:15 +00:00
parent f5ce7152ec
commit 0089f0faa7

View File

@ -140,6 +140,7 @@ For example:
""" """
A naive raw file upload parser. A naive raw file upload parser.
""" """
media_type = '*/*' # Accept anything
def parse(self, stream, media_type=None, parser_context=None): def parse(self, stream, media_type=None, parser_context=None):
content = stream.read() content = stream.read()