]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
:bug: Fix doctype in docs (#537)
authorTrim21 <i@trim21.me>
Fri, 4 Oct 2019 00:35:44 +0000 (08:35 +0800)
committerSebastián Ramírez <tiangolo@gmail.com>
Fri, 4 Oct 2019 00:35:44 +0000 (19:35 -0500)
fastapi/openapi/docs.py

index 9aa09afff43772086f5d362fee44116a11561746..fc55ac1a7376eea861ad995e0ca3b3d70c291054 100644 (file)
@@ -17,7 +17,7 @@ def get_swagger_ui_html(
 ) -> HTMLResponse:
 
     html = f"""
-    <! doctype html>
+    <!DOCTYPE html>
     <html>
     <head>
     <link type="text/css" rel="stylesheet" href="{swagger_css_url}">
@@ -104,7 +104,7 @@ def get_redoc_html(
 
 def get_swagger_ui_oauth2_redirect_html() -> HTMLResponse:
     html = """
-    <!doctype html>
+    <!DOCTYPE html>
     <html lang="en-US">
     <body onload="run()">
     </body>