diff options
author | Richard van der Hoff <richard@matrix.org> | 2015-10-29 12:29:07 +0000 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2015-10-29 12:29:07 +0000 |
commit | 32e9c376d3a25e527327974dd97e2313d430a5fd (patch) | |
tree | 4876a9d24c819bb83fca2b21761db3806b066d37 /matrix-connection.h | |
parent | 2498e41374edc940d6de474c11e0530fcc83752f (diff) | |
download | purple-matrix-32e9c376d3a25e527327974dd97e2313d430a5fd.tar.gz |
Improve error-handling in API requests
Try to deal better with errors which occur during API requests, in terms of
reporting them to the user/logs, and in terms of not writing to freed
structures.
Also do some sanity-checking of the supplied homeserver URL: make sure it is
https:// or http://, and make sure we get the right number of '/'s.
Diffstat (limited to 'matrix-connection.h')
-rw-r--r-- | matrix-connection.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/matrix-connection.h b/matrix-connection.h index 9e9c166..a79c5cf 100644 --- a/matrix-connection.h +++ b/matrix-connection.h @@ -32,7 +32,7 @@ struct _PurpleConnection; typedef struct _MatrixConnectionData { struct _PurpleConnection *pc; - gchar *homeserver; /* hostname (:port) of the homeserver */ + gchar *homeserver; /* URL of the homeserver. Always ends in '/' */ gchar *user_id; /* our full user id ("@user:server") */ gchar *access_token; /* access token corresponding to our user */ |