mirror of
https://github.com/camptocamp/odoo-cloud-platform.git
synced 2026-06-24 08:47:40 +00:00
filter out websocket requests
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user