aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDr. David Alan Gilbert <dave@treblig.org>2016-11-03 02:12:48 +0000
committerDr. David Alan Gilbert <dave@treblig.org>2016-11-03 02:12:48 +0000
commitc64b6d5225c4bcbfa0dd83b28bf7c0db19705e30 (patch)
tree461731c91845ee787b52a6ded5965531c4cb7408
parent4b67f72d4ca35a9f793cba7d20efbcb0dd0913d6 (diff)
downloadpurple-matrix-c64b6d5225c4bcbfa0dd83b28bf7c0db19705e30.tar.gz
Fix bogus matrix_api_upload_file url
I added an extra /join in the upload url - synapse seems to ignore it but we'd better remove it! Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org>
-rw-r--r--matrix-api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/matrix-api.c b/matrix-api.c
index f5a7ebf..c568f80 100644
--- a/matrix-api.c
+++ b/matrix-api.c
@@ -784,7 +784,7 @@ MatrixApiRequestData *matrix_api_upload_file(MatrixConnectionData *conn,
url = g_string_new(conn->homeserver);
g_string_append(url, "/_matrix/media/r0/upload");
- g_string_append(url, "/join?access_token=");
+ g_string_append(url, "?access_token=");
g_string_append(url, purple_url_encode(conn->access_token));
extra_header = g_string_new("Content-Type: ");