Send HTTP pushes direct to http-priv rather than via clouldflare
(This is a heinous hack that ought to be made more generic and pushed back to develop)pull/3476/head
parent
463e7c2709
commit
9e38981ae4
|
@ -329,7 +329,12 @@ class HttpPusher(object):
|
|||
if not notification_dict:
|
||||
defer.returnValue([])
|
||||
try:
|
||||
resp = yield self.http_client.post_json_get_json(self.url, notification_dict)
|
||||
url = self.url.replace(
|
||||
"https://matrix.org/_matrix/push/v1/notify",
|
||||
"http://http-priv.matrix.org/_matrix/push/v1/notify",
|
||||
)
|
||||
|
||||
resp = yield self.http_client.post_json_get_json(url, notification_dict)
|
||||
except Exception:
|
||||
logger.warn(
|
||||
"Failed to push event %s to %s",
|
||||
|
|
Loading…
Reference in New Issue