|
|
|
@ -12,7 +12,7 @@
|
|
|
|
|
from werkzeug.wrappers import Request as RequestBase, Response as ResponseBase |
|
|
|
|
from werkzeug.utils import cached_property |
|
|
|
|
|
|
|
|
|
from .debughelpers import make_enctype_error_multidict |
|
|
|
|
from .debughelpers import attach_enctype_error_multidict |
|
|
|
|
from .helpers import json, _assert_have_json |
|
|
|
|
from .globals import _request_ctx_stack |
|
|
|
|
|
|
|
|
@ -108,7 +108,7 @@ class Request(RequestBase):
|
|
|
|
|
ctx = _request_ctx_stack.top |
|
|
|
|
if ctx is not None and ctx.app.debug and \ |
|
|
|
|
self.mimetype != 'multipart/form-data' and not self.files: |
|
|
|
|
make_enctype_error_multidict(self) |
|
|
|
|
attach_enctype_error_multidict(self) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Response(ResponseBase): |
|
|
|
|