From: Sebastián Ramírez Date: Mon, 10 Dec 2018 16:09:08 +0000 (+0400) Subject: :arrow_up: Update JS CDN to cdn.jsdelivr.net X-Git-Tag: 0.1.11~52 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=26ffa5d9c8d00fd0d077847ad56f165d9095947a;p=thirdparty%2Ffastapi%2Ffastapi.git :arrow_up: Update JS CDN to cdn.jsdelivr.net as unpkg.com seems to have been down all day --- diff --git a/fastapi/openapi/docs.py b/fastapi/openapi/docs.py index 955a99f002..7d8fdfc4df 100644 --- a/fastapi/openapi/docs.py +++ b/fastapi/openapi/docs.py @@ -7,7 +7,7 @@ def get_swagger_ui_html(*, openapi_url: str, title: str) -> HTMLResponse: - + """ + title @@ -17,7 +17,7 @@ def get_swagger_ui_html(*, openapi_url: str, title: str) -> HTMLResponse: <body> <div id="swagger-ui"> </div> - <script src="//unpkg.com/swagger-ui-dist@3/swagger-ui-bundle.js"></script> + <script src="https://cdn.jsdelivr.net/npm/swagger-ui-dist@3/swagger-ui-bundle.js"></script> <!-- `SwaggerUIBundle` is now available on the page --> <script>