mirror of
https://mau.dev/maunium/synapse.git
synced 2024-09-27 12:09:06 +02:00
Remove unnecessary pusher URL validation
This commit is contained in:
parent
8fd2d4cc1b
commit
1c24db88ac
1 changed files with 0 additions and 7 deletions
|
@ -134,13 +134,6 @@ class HttpPusher(Pusher):
|
|||
url = self.data["url"]
|
||||
if not isinstance(url, str):
|
||||
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.http_client = hs.get_proxied_blocklisted_http_client()
|
||||
|
|
Loading…
Reference in a new issue