mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-15 22:42:23 +01:00
Remove bad pusher validation
This commit is contained in:
parent
893b42a910
commit
6c6d7c1ab6
2 changed files with 1 additions and 7 deletions
|
@ -29,6 +29,7 @@ use the specific release tags.
|
||||||
filtered away (e.g. `org.matrix.dummy_event` and `m.room.aliases`).
|
filtered away (e.g. `org.matrix.dummy_event` and `m.room.aliases`).
|
||||||
* Config option to allow specific users to use timestamp massaging without
|
* Config option to allow specific users to use timestamp massaging without
|
||||||
being appservice users.
|
being appservice users.
|
||||||
|
* Removed bad pusher URL validation.
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
Generating a new config will include the `meow` section, but this is here for
|
Generating a new config will include the `meow` section, but this is here for
|
||||||
|
|
|
@ -92,13 +92,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_blacklisted_http_client()
|
self.http_client = hs.get_proxied_blacklisted_http_client()
|
||||||
|
|
Loading…
Reference in a new issue