From 0089f0faa716bd37ca29f9f2db98b4ab273e01f1 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Thu, 8 Nov 2012 20:43:15 +0000 Subject: [PATCH] Add media_type to example file parser --- docs/api-guide/parsers.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/api-guide/parsers.md b/docs/api-guide/parsers.md index 59f00f999..185b616cb 100644 --- a/docs/api-guide/parsers.md +++ b/docs/api-guide/parsers.md @@ -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()