Skip to content
Snippets Groups Projects
Commit ae026b1c authored by Tulir Asokan's avatar Tulir Asokan :cat2:
Browse files

Remove unnecessary pusher URL validation

parent 0bc5a914
No related branches found
No related tags found
No related merge requests found
...@@ -134,13 +134,6 @@ class HttpPusher(Pusher): ...@@ -134,13 +134,6 @@ class HttpPusher(Pusher):
url = self.data["url"] url = self.data["url"]
if not isinstance(url, str): if not isinstance(url, str):
raise PusherConfigException("'url' must be a string") raise PusherConfigException("'url' must be a string")
url_parts = urllib.parse.urlparse(url)
# Note that the specification also says the scheme must be HTTPS, but
# it isn't up to the homeserver to verify that.
if url_parts.path != "/_matrix/push/v1/notify":
raise PusherConfigException(
"'url' must have a path of '/_matrix/push/v1/notify'"
)
self.url = url self.url = url
self.http_client = hs.get_proxied_blocklisted_http_client() self.http_client = hs.get_proxied_blocklisted_http_client()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment