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

Commit

Permalink
federation_client: stop adding URL prefix (#9645)
Browse files Browse the repository at this point in the history
  • Loading branch information
richvdh authored Mar 18, 2021
1 parent 9b0e300 commit 201178d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
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

0 comments on commit 201178d

Please sign in to comment.