filter out websocket requests

This commit is contained in:
Alexandre Fayolle committed 2024-08-27 12:26:54 +02:00
1 parent 30b7335e66
commit 5f36852b9a
1 file changed
+1 -1
+1 -1
View File
@@ -30,7 +30,7 @@ class IrHttp(models.AbstractModel):
@classmethod
def _monitoring_blacklist(cls, request):
path_info = request.httprequest.environ.get("PATH_INFO")
if path_info.startswith("/longpolling/"):
if path_info.startswith(("/longpolling/", "/websocket")):
return True
return False
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.