Skip to content

Commit

Permalink
Require yarl<1.6 due to aio-libs/yarl#509
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Oct 8, 2020
1 parent c5977b4 commit 8d11155
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions mautrix/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,9 @@ async def request(self, method: Method, path: Union[PathBuilder, str],
path = path[1:]

try:
# TODO combining the path like this breaks in yarl 1.6+, because it re-url-encodes path,
# which is already url-encoded. yarl is currently pinned to <1.6, but at some point
# aiohttp will require yarl >=1.6
return await self._send(method, self.base_url / path,
content, query_params, headers or {})
except ClientError as e:
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
aiohttp
attrs
yarl
yarl<1.6

0 comments on commit 8d11155

Please sign in to comment.