Skip to content

Commit

Permalink
Add AppService parameter to change aiohttp Application parameters
Browse files Browse the repository at this point in the history
Fixes #3
  • Loading branch information
tulir committed Aug 5, 2018
1 parent 82bc063 commit 9796817
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mautrix_appservice/appservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def __init__(self, server: str, domain: str, as_token: str, hs_token: str, bot_l
log: Optional[Union[logging.Logger, str]] = None, verify_ssl: bool = True,
query_user: QueryFunc = None, query_alias: QueryFunc = None,
real_user_content_key: Optional[str] = "net.maunium.appservice.puppet",
state_store: StateStore = None):
state_store: StateStore = None, aiohttp_params: dict = None):
self.server = server
self.domain = domain
self.verify_ssl = verify_ssl
Expand Down Expand Up @@ -52,7 +52,7 @@ async def default_query_handler(_):

self.event_handlers = []

self.app = web.Application(loop=self.loop)
self.app = web.Application(loop=self.loop, **aiohttp_params)
self.app.router.add_route("PUT", "/transactions/{transaction_id}",
self._http_handle_transaction)
self.app.router.add_route("GET", "/rooms/{alias}", self._http_query_alias)
Expand Down

0 comments on commit 9796817

Please sign in to comment.