Skip to content
Myr

Only provide that monkeypatch if all files are missing

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent 23c1dd8 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:flask/wrappers.py+1 added-1 removed
105 unmodified lines
106 # in debug mode we're replacing the files multidict with an ad-hoc107 # subclass that raises a different error for key errors.108 ctx = _request_ctx_stack.top109 if ctx is not None and ctx.app.debug and \110 self.mimetype != 'multipart/form-data':110 self.mimetype != 'multipart/form-data' and not self.files:111 make_enctype_error_multidict(self)112113114class Response(ResponseBase):
9 unmodified lines