Skip to content

Commit

Permalink
Base Quart.default_config on flask.app.Flask.default_config
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesParrott committed Nov 13, 2024
1 parent 2d79991 commit 74003b3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/quart/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 74003b3

Please sign in to comment.