summary refs log tree commit diff
path: root/synapse/http/servlet.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Port over enough to get some sytests running on Python 3 (#3668)Amber Brown2018-08-201-14/+42
|
* Python 3: Convert some unicode/bytes uses (#3569)Amber Brown2018-08-021-1/+9
|
* rename assert_params_in_request to assert_params_in_dictKrombel2018-07-131-1/+1
| | | | | | the method "assert_params_in_request" does handle dicts and not requests. A request body has to be parsed to json before this method can be used
* run isortAmber Brown2018-07-091-2/+1
|
* Attempt to be more performant on PyPy (#3462)Amber Brown2018-06-281-2/+4
|
* delete_local_events for purge_historyRichard van der Hoff2018-02-091-3/+15
| | | | Add a flag which makes the purger delete local events
* Fix 500 on invalid utf-8 in requestRichard van der Hoff2017-11-101-1/+2
| | | | | | | | | If somebody sends us a request where the the body is invalid utf-8, we should return a 400 rather than a 500. (json.loads throws a UnicodeError in this situation) We might as well catch all Exceptions here: it seems very unlikely that we would get a request that *isn't caused by invalid json.
* replace 'except:' with 'except Exception:'Richard van der Hoff2017-10-231-3/+3
| | | | what could possibly go wrong
* Support registration / login with phone numberDavid Baker2017-03-131-0/+10
| | | | Changes from https://github.com/matrix-org/synapse/pull/1971
* Revert "Support registration & login with phone number"Erik Johnston2017-03-131-10/+0
|
* Refector out assert_params_in_requestDavid Baker2017-03-081-0/+10
| | | | and replace requestEmailToken where we meant requestMsisdnToken
* Add new API appservice specific public room listErik Johnston2016-12-061-2/+6
|
* Pass since/from parameters over federationErik Johnston2016-09-151-4/+14
|
* Use google style doc strings.Mark Haines2016-04-011-30/+51
| | | | | | | pycharm supports them so there is no need to use the other format. Might as well convert the existing strings to reduce the risk of people accidentally cargo culting the wrong doc string format.
* Fix regression where synapse checked whether push rules were valid JSON ↵Mark Haines2016-03-141-4/+17
| | | | before the compatibility hack that handled clients sending invalid JSON
* Use parse_json_object_from_request to parse JSON out of request bodiesMark Haines2016-03-111-5/+12
|
* Add a parse_json_object functionMark Haines2016-03-091-5/+65
| | | | | to deduplicate all the copy+pasted _parse_json functions. Also document the parse_.* functions.
* copyrightsMatthew Hodgson2016-01-071-1/+1
|
* Host /unstable and /r0 versions of r0 APIsDaniel Wagner-Hall2015-12-011-4/+4
|
* Combine the request wrappers in rest/media/v1 and http/server into a single ↵Mark Haines2015-04-211-55/+55
| | | | wrapper decorator
* Add missing commasErik Johnston2015-03-131-2/+2
|
* Add client v2_alpha resource to synapse server resource treeMark Haines2015-01-231-0/+57
|
* Add RestServlet base class in synapse/http/servlet.pyMark Haines2015-01-231-0/+56