diff --git a/dbfilter_from_config/__manifest__.py b/dbfilter_from_config/__manifest__.py index 90f0b3c..61f7af8 100644 --- a/dbfilter_from_config/__manifest__.py +++ b/dbfilter_from_config/__manifest__.py @@ -27,7 +27,7 @@ Also required : `proxy_mode` to `True` Inspired from OCA `dbfilter_from_header`.""", - 'version': '12.0.0.0.3', + 'version': '12.0.0.0.4', 'category': 'Yaltik', 'author': 'Fabien Bourgeois', 'license': 'AGPL-3', diff --git a/dbfilter_from_config/override.py b/dbfilter_from_config/override.py index 6c05d72..b48dab3 100644 --- a/dbfilter_from_config/override.py +++ b/dbfilter_from_config/override.py @@ -38,7 +38,7 @@ http_host_resolv = {} def db_filter(dbs, httprequest=None): """ Override db_filter """ - http_host = httprequest.environ.get('HTTP_HOST', '').split(':')[0] + http_host = httprequest.environ.get('HTTP_HOST', '').split(':')[0] if httprequest else '' if db_filter_str: httprequest = httprequest or http.request.httprequest # If in cache and not empty