Skip to content

Commit 120965c

Browse files
authored
Merge pull request #202 from ofekashery/fix/unquoting-vhost
hotfix: unquoting vhost in path
2 parents a1285d4 + 99048e4 commit 120965c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

aiormq/connection.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,9 @@ def __init__(
286286
if self.url.path == "/" or not self.url.path:
287287
self.vhost = "/"
288288
else:
289-
self.vhost = self.url.path[1:]
289+
quoted_vhost = self.url.path[1:]
290+
# yarl>=1.9.5 skips unquoting backslashes in path
291+
self.vhost = quoted_vhost.replace("%2F", "/")
290292

291293
self.ssl_context = context
292294
self.ssl_certs = SSLCerts(

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "aiormq"
3-
version = "6.8.0"
3+
version = "6.8.1"
44
description = "Pure python AMQP asynchronous client library"
55
authors = ["Dmitry Orlov <me@mosquito.su>"]
66
readme = "README.rst"

0 commit comments

Comments
 (0)