mirror of
https://github.com/fastapi/fastapi.git
synced 2026-04-15 12:28:57 -04:00
🐛 Fix XML example (#710)
This commit is contained in:
committed by
Sebastián Ramírez
parent
a1c9eff041
commit
4915cf0561
@@ -6,12 +6,11 @@ app = FastAPI()
|
||||
|
||||
@app.get("/legacy/")
|
||||
def get_legacy_data():
|
||||
data = """
|
||||
<?xml version="1.0"?>
|
||||
data = """<?xml version="1.0"?>
|
||||
<shampoo>
|
||||
<Header>
|
||||
Apply shampoo here.
|
||||
<Header>
|
||||
</Header>
|
||||
<Body>
|
||||
You'll have to use soap here.
|
||||
</Body>
|
||||
|
||||
Reference in New Issue
Block a user