From 74003b3622b97d4b2b6d3487579e2f996dbc730c Mon Sep 17 00:00:00 2001 From: JamesParrott <80779630+JamesParrott@users.noreply.github.com> Date: Wed, 13 Nov 2024 21:51:40 +0000 Subject: [PATCH] Base Quart.default_config on flask.app.Flask.default_config --- src/quart/app.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/quart/app.py b/src/quart/app.py index da23382..a55bfcf 100644 --- a/src/quart/app.py +++ b/src/quart/app.py @@ -29,6 +29,7 @@ from aiofiles import open as async_open from aiofiles.base import AiofilesContextManager from aiofiles.threadpool.binary import AsyncBufferedReader +import flask.app from flask.sansio.app import App from flask.sansio.scaffold import setupmethod from hypercorn.asyncio import serve @@ -227,6 +228,9 @@ class Quart(App): websocket_class = Websocket default_config = ImmutableDict( + + flask.app.Flask.default_config | + { "APPLICATION_ROOT": "/", "BACKGROUND_TASK_SHUTDOWN_TIMEOUT": 5, # Second