Skip to content

Commit

Permalink
Fix decompose_http_proxy_url
Browse files Browse the repository at this point in the history
this morning: More Sygnal#130 (HTTP proxy) rework, I'm feeling it
straightening out a lot so hopefully it'll be back in the queue soon;

today: 'More of that'; Catch up on #2528 and #7828 which Riiich has
suggested solving first
Github
matrix-org/synapse#2528 : Homeservers don't
catch up with missed traffic until someone sends another event
matrix-org/synapse#7828 : in-memory federation
transaction transmission queues build up indefinitely for offline
servers
  • Loading branch information
reivilibre committed Jul 14, 2020
1 parent 2cfabde commit db4f1d6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sygnal/helper/proxy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from urllib.parse import urlparse


def decompose_http_proxy_url(self, proxy_url):
def decompose_http_proxy_url(proxy_url):
url = urlparse(proxy_url, scheme="http")

if not url.hostname:
Expand All @@ -14,3 +14,5 @@ def decompose_http_proxy_url(self, proxy_url):
f"Unknown proxy scheme {url.scheme};" f" only 'http' is supported."
)

return url

0 comments on commit db4f1d6

Please sign in to comment.