Skip to content
Myr

Update wrappers.py

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

authored by max demian · committed by max demian · parent 6974d52 · Browse files · 1 file+6 added−6 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+6 added−6 removed

  • other:+6 added−6 removed

1 file+6 added−6 removed

modified:flask/wrappers.py+6 added-6 removed
38 unmodified lines
39 provides all of the attributes Werkzeug defines plus a few Flask40 specific ones.41 """4243 #: the internal URL rule that matched the request. This can be43 #: The internal URL rule that matched the request. This can be44 #: useful to inspect which methods are allowed for the URL from45 #: a before/after handler (``request.url_rule.methods``) etc.46 #:47 #: .. versionadded:: 0.648 url_rule = None4950 #: a dict of view arguments that matched the request. If an exception50 #: A dict of view arguments that matched the request. If an exception51 #: happened when matching, this will be `None`.52 view_args = None5354 #: if matching the URL failed, this is the exception that will be54 #: If matching the URL failed, this is the exception that will be55 #: raised / was raised as part of the request handling. This is56 #: usually a :exc:`~werkzeug.exceptions.NotFound` exception or57 #: something similar.58 routing_exception = None5960 # switched by the request context until 1.0 to opt in deprecated61 # module functionality60 # Switched by the request context until 1.0 to opt in deprecated61 # module functionality.62 _is_old_module = False6364 @property65 def max_content_length(self):
112 unmodified lines
178179 def _load_form_data(self):180 RequestBase._load_form_data(self)181182 # in debug mode we're replacing the files multidict with an ad-hoc182 # In debug mode we're replacing the files multidict with an ad-hoc183 # subclass that raises a different error for key errors.184 ctx = _request_ctx_stack.top185 if ctx is not None and ctx.app.debug and \186 self.mimetype != 'multipart/form-data' and not self.files:
13 unmodified lines