mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-06-22 00:41:56 +00:00
Upgrade to FastAPI 0.85.0 and check embedded web-ui index.html can be found.
This commit is contained in:
@ -55,6 +55,9 @@ async def web_ui(file_path: str):
|
||||
if static is None or not os.path.exists(static):
|
||||
static = get_resource(os.path.join("static", "web-ui", "index.html"))
|
||||
|
||||
if static is None:
|
||||
raise HTTPException(status_code=status.HTTP_404_NOT_FOUND)
|
||||
|
||||
# guesstype prefers to have text/html type than application/javascript
|
||||
# which results with warnings in Firefox 66 on Windows
|
||||
# Ref. gns3-server#1559
|
||||
|
Reference in New Issue
Block a user