Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
xmlrpc: Reattach query parameters after parsing URI
  • Loading branch information
Rosuav committed Mar 27, 2021
commit f99ae03eb4aa2c6c036e65652616b13e37484d5e
2 changes: 2 additions & 0 deletions Lib/xmlrpc/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1426,6 +1426,8 @@ def __init__(self, uri, transport=None, encoding=None, verbose=False,
raise OSError("unsupported XML-RPC protocol")
self.__host = p.netloc
self.__handler = p.path or "/RPC2"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
self.__handler = p.path or "/RPC2"
self.__handler = p.path

if p.query:
self.__handler += "?" + p.query

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if not self.__handler:
self.__handler = "/RPC2"

if transport is None:
if p.scheme == "https":
Expand Down