Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

federation_client: stop adding URL prefix #9645

Merged
merged 1 commit into from
Mar 18, 2021
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions changelog.d/9645.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
In the `federation_client` commandline client, stop automatically adding the URL prefix, so that servlets on other prefixes can be tested.
4 changes: 2 additions & 2 deletions scripts-dev/federation_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def main():
parser.add_argument("--body", help="Data to send as the body of the HTTP request")

parser.add_argument(
"path", help="request path. We will add '/_matrix/federation/v1/' to this."
"path", help="request path, including the '/_matrix/federation/...' prefix."
)

args = parser.parse_args()
Expand All @@ -239,7 +239,7 @@ def main():
args.server_name,
key,
args.destination,
"/_matrix/federation/v1/" + args.path,
args.path,
content=args.body,
)

Expand Down