diff --git a/src/factiva/analytics/common/req.py b/src/factiva/analytics/common/req.py index fa775bf..3a64c9a 100644 --- a/src/factiva/analytics/common/req.py +++ b/src/factiva/analytics/common/req.py @@ -70,14 +70,17 @@ def api_send_request(method:str='GET', if not isinstance(headers, dict): raise ValueError('Unexpected headers value') + headers.update({ + 'X-API-VERSION': const.API_LATEST_VERSION + }) + vsum = 'f4c71v4f4c71v4f4c71v4f4c71v4f4c7' if 'user-key' in headers: vsum = tools.md5hash(headers['user-key']) if config.USERAGENT: headers.update({ - 'User-Agent': f'RDL-Python-{__version__}-{vsum}', - 'X-API-VERSION': const.API_LATEST_VERSION + 'User-Agent': f'RDL-Python-{__version__}-{vsum}' }) __log.debug(f"{method} Request with User-Agent {headers['User-Agent']}")