diff --git a/README.rst b/README.rst index 214e446..787fabe 100644 --- a/README.rst +++ b/README.rst @@ -40,6 +40,15 @@ https://tcms-api.readthedocs.io/en/latest/modules/tcms_api.html CHANGELOG --------- +v15.0 (22 Sep 2025) +~~~~~~~~~~~~~~~~~~~ + +- Include host URL in Referer header +- Updates for newer pylint +- Updates for newer Sphynx +- Update GitHub actions + + v13.3 (10 Jun 2024) ~~~~~~~~~~~~~~~~~~~ diff --git a/docs/source/conf.py b/docs/source/conf.py index 4da4504..31bcf2c 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -77,4 +77,4 @@ htmlhelp_basename = "tcmsapi" # Example configuration for intersphinx: refer to the Python standard library. -intersphinx_mapping = {"http://docs.python.org/": None} +intersphinx_mapping = {"python": ("https://docs.python.org/3", None)} diff --git a/tcms_api/version.py b/tcms_api/version.py index b38e934..e3b67aa 100644 --- a/tcms_api/version.py +++ b/tcms_api/version.py @@ -1 +1 @@ -__version__ = "13.3" +__version__ = "15.0" diff --git a/tcms_api/xmlrpc.py b/tcms_api/xmlrpc.py index 7c9e9f2..dfe7202 100644 --- a/tcms_api/xmlrpc.py +++ b/tcms_api/xmlrpc.py @@ -24,7 +24,9 @@ class TCMSProxy(ServerProxy): def __request(self, methodname, params): - self._ServerProxy__transport._extra_headers = [("Referer", methodname)] + self._ServerProxy__transport._extra_headers = [ + ("Referer", f"{methodname}@{self._ServerProxy__host}") + ] return self._ServerProxy__request(methodname, params) def __getattr__(self, name):