From fc1e01f373eb07a016fd3940bff810f8d74d9508 Mon Sep 17 00:00:00 2001 From: "Paul \"LeoNerd\" Evans" Date: Thu, 9 Jul 2015 19:52:34 +0100 Subject: [PATCH] Add a small note about the meaning of the 'target' field --- specification/30_server_server_api.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/specification/30_server_server_api.rst b/specification/30_server_server_api.rst index 48434075..2eb80f92 100644 --- a/specification/30_server_server_api.rst +++ b/specification/30_server_server_api.rst @@ -553,6 +553,11 @@ them in a JSON object and signing it using the JSON signing algorithm. The resulting signatures are added as an Authorization header with an auth scheme of X-Matrix. +Note that the target field should include the full path starting with +``/_matrix/...``, including the ``?`` and any query parameters if present, but +should not include the leading ``https:``, nor the destination server's +hostname. + Step 1 sign JSON: .. code::