Browse Source

Only provide that monkeypatch if all files are missing

pull/300/head
Armin Ronacher 14 years ago
parent
commit
3400b78db2
  1. 2
      flask/wrappers.py

2
flask/wrappers.py

@ -107,7 +107,7 @@ class Request(RequestBase):
# subclass that raises a different error for key errors.
ctx = _request_ctx_stack.top
if ctx is not None and ctx.app.debug and \
self.mimetype != 'multipart/form-data':
self.mimetype != 'multipart/form-data' and not self.files:
make_enctype_error_multidict(self)

Loading…
Cancel
Save