mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-11-17 09:14:52 +02:00
Upgrade to FastAPI 0.85.0 and check embedded web-ui index.html can be found.
This commit is contained in:
parent
9a7222b83e
commit
19de2732f2
@ -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
|
||||
|
@ -1,5 +1,5 @@
|
||||
uvicorn==0.18.3
|
||||
fastapi==0.84.0
|
||||
fastapi==0.85.0
|
||||
python-multipart==0.0.5
|
||||
websockets==10.3
|
||||
aiohttp==3.8.1
|
||||
|
Loading…
Reference in New Issue
Block a user