diff options
author | Kegan Dougal <kegan@matrix.org> | 2015-02-04 17:07:31 +0000 |
---|---|---|
committer | Kegan Dougal <kegan@matrix.org> | 2015-02-04 17:07:31 +0000 |
commit | 96d4bf90120a07faa5163c2e5af542358554dd61 (patch) | |
tree | 6e95cea34f716e9719007724058f0255eea81896 /scripts | |
parent | Add query_user/alias APIs. (diff) | |
download | synapse-96d4bf90120a07faa5163c2e5af542358554dd61.tar.xz |
Modify API for SimpleHttpClient.get_json and update usages.
Previously, this would only return the HTTP body as JSON, and discard other response information (e.g. the HTTP response code). This has now been changed to throw a CodeMessageException on a non-2xx response, with the response code and body, which can then be parsed as JSON. Affected modules include: - Registration/Login (when using an email for IS auth)
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions