Skip to content

Commit bb153b1

Browse files
committed
bug: don't append unnecessary ?
1 parent 1c59838 commit bb153b1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

requests_unixsocket/settings.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,12 @@ def __init__(self, urlparse=None):
1313

1414
def default_urlparse(url):
1515
parsed_url = urlparse(url)
16+
reqpath = parsed_url.path
17+
if parsed_url.query:
18+
reqpath += '?' + parsed_url.query
1619
return Settings.ParseResult(
1720
sockpath=unquote(parsed_url.netloc),
18-
reqpath=parsed_url.path + '?' + parsed_url.query,
21+
reqpath=reqpath,
1922
)
2023

2124

0 commit comments

Comments
 (0)