filter out websocket requests

This commit is contained in:
Alexandre Fayolle
2024-08-27 12:26:54 +02:00
parent 30b7335e66
commit 5f36852b9a
+1 -1
View File
@@ -30,7 +30,7 @@ class IrHttp(models.AbstractModel):
@classmethod @classmethod
def _monitoring_blacklist(cls, request): def _monitoring_blacklist(cls, request):
path_info = request.httprequest.environ.get("PATH_INFO") path_info = request.httprequest.environ.get("PATH_INFO")
if path_info.startswith("/longpolling/"): if path_info.startswith(("/longpolling/", "/websocket")):
return True return True
return False return False