From b296915ad02443e6569b275d8285b47fc51fdf83 Mon Sep 17 00:00:00 2001 From: Half-Shot Date: Wed, 4 Dec 2019 15:55:31 +0000 Subject: Remove leading / from prefix --- synapse/appservice/api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/synapse/appservice/api.py b/synapse/appservice/api.py index b798943ba5..238f139398 100644 --- a/synapse/appservice/api.py +++ b/synapse/appservice/api.py @@ -14,6 +14,7 @@ # limitations under the License. import logging import os.path +import urllib.parse from six.moves import urllib @@ -47,7 +48,7 @@ sent_events_counter = Counter( ) HOUR_IN_MS = 60 * 60 * 1000 -APP_SERVICE_PREFIX = "/_matrix/app/v1" +APP_SERVICE_PREFIX = "_matrix/app/v1" def _is_valid_3pe_metadata(info): -- cgit 1.4.1