This module provides a middleware that performs sanity checks on the behavior of the WSGI server and application. It checks that the PEP 3333 WSGI spec is properly implemented. It also warns on some common HTTP errors such as non-empty responses for 304 status codes.
Warns about common errors in the WSGI and HTTP behavior of the server and wrapped application. Some of the issues it check are:
Error information is emitted using the
|Parameters:||app – The WSGI application to wrap.|
from werkzeug.middleware.lint import LintMiddleware app = LintMiddleware(app)
© 2007–2020 Pallets
Licensed under the BSD 3-clause License.