Commit 0089f0fa by Tom Christie

Add media_type to example file parser

parent f5ce7152
......@@ -140,6 +140,7 @@ For example:
"""
A naive raw file upload parser.
"""
media_type = '*/*' # Accept anything
def parse(self, stream, media_type=None, parser_context=None):
content = stream.read()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment