deprecate config attributes

This commit is contained in:
David Lord 2022-08-01 16:53:15 -07:00
parent 98ca00d545
commit bfdd37110c
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
8 changed files with 154 additions and 57 deletions

View file

@ -414,7 +414,7 @@ def _prepare_send_file_kwargs(**kwargs: t.Any) -> t.Dict[str, t.Any]:
kwargs.update(
environ=request.environ,
use_x_sendfile=current_app.use_x_sendfile,
use_x_sendfile=current_app.config["USE_X_SENDFILE"],
response_class=current_app.response_class,
_root_path=current_app.root_path, # type: ignore
)