🐛(webhooks) fix InsecureRequestWarning from webhook calls
Matrix webhook calls were unverified and caused a security warning. Setting option "verify" to "True" on related calls should help.
This commit is contained in:
committed by
Marie
parent
10dcdfc8c2
commit
d2bf267160
@@ -65,7 +65,7 @@ class MatrixAPIClient:
|
||||
f"{self._get_room_url(webhook.url)}/join",
|
||||
json={},
|
||||
headers=self.get_headers(webhook),
|
||||
verify=False,
|
||||
verify=True,
|
||||
timeout=3,
|
||||
)
|
||||
|
||||
@@ -87,7 +87,7 @@ class MatrixAPIClient:
|
||||
"reason": f"User added to team {webhook.team} on People",
|
||||
},
|
||||
headers=self.get_headers(webhook),
|
||||
verify=False,
|
||||
verify=True,
|
||||
timeout=3,
|
||||
)
|
||||
|
||||
@@ -120,7 +120,7 @@ class MatrixAPIClient:
|
||||
"reason": f"User removed from team {webhook.team} on People",
|
||||
},
|
||||
headers=self.get_headers(webhook),
|
||||
verify=False,
|
||||
verify=True,
|
||||
timeout=3,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user