Skip to content

Commit 9796817

Browse files
committed
Add AppService parameter to change aiohttp Application parameters
Fixes #3
1 parent 82bc063 commit 9796817

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mautrix_appservice/appservice.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def __init__(self, server: str, domain: str, as_token: str, hs_token: str, bot_l
2020
log: Optional[Union[logging.Logger, str]] = None, verify_ssl: bool = True,
2121
query_user: QueryFunc = None, query_alias: QueryFunc = None,
2222
real_user_content_key: Optional[str] = "net.maunium.appservice.puppet",
23-
state_store: StateStore = None):
23+
state_store: StateStore = None, aiohttp_params: dict = None):
2424
self.server = server
2525
self.domain = domain
2626
self.verify_ssl = verify_ssl
@@ -52,7 +52,7 @@ async def default_query_handler(_):
5252

5353
self.event_handlers = []
5454

55-
self.app = web.Application(loop=self.loop)
55+
self.app = web.Application(loop=self.loop, **aiohttp_params)
5656
self.app.router.add_route("PUT", "/transactions/{transaction_id}",
5757
self._http_handle_transaction)
5858
self.app.router.add_route("GET", "/rooms/{alias}", self._http_query_alias)

0 commit comments

Comments
 (0)