[REF] monitoring_prometheus: server_environment should not be a required dependency

This commit is contained in:
Maksym Yankin
2026-05-20 09:52:52 +03:00
parent 8c43f2e673
commit 9981e029d4
2 changed files with 5 additions and 8 deletions
+2
View File
@@ -17,6 +17,8 @@ class IrHttp(models.AbstractModel):
@classmethod
def _dispatch(cls, endpoint):
# httprequest environment is updated with WSGI environment variables in core
# REF: https://github.com/odoo/odoo/blob/16.0/addons/http_routing/models/ir_http.py#L529
path_info = request.httprequest.environ.get("PATH_INFO")
if path_info.startswith("/longpolling/"):