Skip to content

Commit

Permalink
Merge pull request #202 from ofekashery/fix/unquoting-vhost
Browse files Browse the repository at this point in the history
hotfix: unquoting vhost in path
  • Loading branch information
mosquito authored Sep 4, 2024
2 parents a1285d4 + 99048e4 commit 120965c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion aiormq/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,9 @@ def __init__(
if self.url.path == "/" or not self.url.path:
self.vhost = "/"
else:
self.vhost = self.url.path[1:]
quoted_vhost = self.url.path[1:]
# yarl>=1.9.5 skips unquoting backslashes in path
self.vhost = quoted_vhost.replace("%2F", "/")

self.ssl_context = context
self.ssl_certs = SSLCerts(
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "aiormq"
version = "6.8.0"
version = "6.8.1"
description = "Pure python AMQP asynchronous client library"
authors = ["Dmitry Orlov <me@mosquito.su>"]
readme = "README.rst"
Expand Down

0 comments on commit 120965c

Please sign in to comment.