diff options
author | Mark Haines <mjark@negativecurvature.net> | 2016-03-14 14:36:17 +0000 |
---|---|---|
committer | Mark Haines <mjark@negativecurvature.net> | 2016-03-14 14:36:17 +0000 |
commit | e462aa97bfb3d05ada56cd725372734f7311a99f (patch) | |
tree | ba196ebb4f83dd936661e96b0bcf8f8c5fe8209a /synapse/rest | |
parent | Merge pull request #642 from matrix-org/erikj/logout (diff) | |
parent | Fix regression where synapse checked whether push rules were valid JSON befor... (diff) | |
download | synapse-e462aa97bfb3d05ada56cd725372734f7311a99f.tar.xz |
Merge pull request #644 from matrix-org/markjh/parse_jsonIII
Fix regression where synapse checked whether push rules were valid
Diffstat (limited to 'synapse/rest')
-rw-r--r-- | synapse/rest/client/v1/push_rule.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/rest/client/v1/push_rule.py b/synapse/rest/client/v1/push_rule.py index b5695d427a..02d837ee6a 100644 --- a/synapse/rest/client/v1/push_rule.py +++ b/synapse/rest/client/v1/push_rule.py @@ -25,7 +25,7 @@ from synapse.storage.push_rule import ( from synapse.push.clientformat import format_push_rules_for_user from synapse.push.baserules import BASE_RULE_IDS from synapse.push.rulekinds import PRIORITY_CLASS_MAP -from synapse.http.servlet import parse_json_object_from_request +from synapse.http.servlet import parse_json_value_from_request class PushRuleRestServlet(ClientV1RestServlet): @@ -51,7 +51,7 @@ class PushRuleRestServlet(ClientV1RestServlet): if '/' in spec['rule_id'] or '\\' in spec['rule_id']: raise SynapseError(400, "rule_id may not contain slashes") - content = parse_json_object_from_request(request) + content = parse_json_value_from_request(request) user_id = requester.user.to_string() |