Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Timo Ley
synapse
Commits
8596cd70
Commit
8596cd70
authored
2 years ago
by
Tulir Asokan
Browse files
Options
Downloads
Patches
Plain Diff
Remove unnecessary pusher URL validation
parent
63fc9da1
No related branches found
Tags
meow-patchset-v1.83.0rc1
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
synapse/push/httppusher.py
+0
-7
0 additions, 7 deletions
synapse/push/httppusher.py
with
0 additions
and
7 deletions
synapse/push/httppusher.py
+
0
−
7
View file @
8596cd70
...
...
@@ -131,13 +131,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_blacklisted_http_client
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment