aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDr. David Alan Gilbert <dave@treblig.org>2017-05-27 02:38:11 +0100
committerDr. David Alan Gilbert <dave@treblig.org>2017-05-27 02:49:17 +0100
commit758d318343d24a301162fccf3671f2262406ca8e (patch)
tree91bd2e337249b9b384c5c493b79f21fe834161fd
parentaa005c136b6acd4799b977a81c249fcb2246197b (diff)
downloadpurple-matrix-758d318343d24a301162fccf3671f2262406ca8e.tar.gz
Fix image upload
I made the same mistake in image upload I had in download - an extra / at the start triggered a 500. 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 3bc1b00..3d72728 100644
--- a/matrix-api.c
+++ b/matrix-api.c
@@ -837,7 +837,7 @@ MatrixApiRequestData *matrix_api_upload_file(MatrixConnectionData *conn,
MatrixApiRequestData *fetch_data;
url = g_string_new(conn->homeserver);
- g_string_append(url, "/_matrix/media/r0/upload");
+ g_string_append(url, "_matrix/media/r0/upload");
g_string_append(url, "?access_token=");
g_string_append(url, purple_url_encode(conn->access_token));