mirror of https://github.com/tiangolo/fastapi.git
🐛 Fix `flask.escape` warning for internal tests (#9468)
* fix flask.escape warning
* 📝 Fix highlight in docs for WSGI
---------
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
This commit is contained in:
parent
fe55402776
commit
5100a98ccd
|
|
@ -12,7 +12,7 @@ Then wrap the WSGI (e.g. Flask) app with the middleware.
|
||||||
|
|
||||||
And then mount that under a path.
|
And then mount that under a path.
|
||||||
|
|
||||||
```Python hl_lines="2-3 22"
|
```Python hl_lines="2-3 23"
|
||||||
{!../../../docs_src/wsgi/tutorial001.py!}
|
{!../../../docs_src/wsgi/tutorial001.py!}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
from fastapi import FastAPI
|
from fastapi import FastAPI
|
||||||
from fastapi.middleware.wsgi import WSGIMiddleware
|
from fastapi.middleware.wsgi import WSGIMiddleware
|
||||||
from flask import Flask, escape, request
|
from flask import Flask, request
|
||||||
|
from markupsafe import escape
|
||||||
|
|
||||||
flask_app = Flask(__name__)
|
flask_app = Flask(__name__)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue