]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
:bug: Fix XML example (#710)
authorOcasoProtal <ocasoprotal@gmail.com>
Wed, 27 Nov 2019 20:06:50 +0000 (21:06 +0100)
committerSebastián Ramírez <tiangolo@gmail.com>
Wed, 27 Nov 2019 20:06:50 +0000 (21:06 +0100)
docs/src/response_directly/tutorial002.py

index fe961335eff88e32c1637b2d03c79c030198d012..10db00a679c855fe36ad30a2aaf101cb3ae5f110 100644 (file)
@@ -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>