From 0498bc0bf9d2aee5f87f57c81c93017cf4625592 Mon Sep 17 00:00:00 2001 From: Vignesh Venkatasubramanian Vaidyanathan <62492557+VigneshVSV@users.noreply.github.com> Date: Sat, 20 Jul 2024 21:20:43 +0200 Subject: [PATCH] content type brought back in TD although default --- hololinked/__init__.py | 2 +- hololinked/server/td.py | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hololinked/__init__.py b/hololinked/__init__.py index d3ec452..3ced358 100644 --- a/hololinked/__init__.py +++ b/hololinked/__init__.py @@ -1 +1 @@ -__version__ = "0.2.0" +__version__ = "0.2.1" diff --git a/hololinked/server/td.py b/hololinked/server/td.py index 59f3215..e553870 100644 --- a/hololinked/server/td.py +++ b/hololinked/server/td.py @@ -613,7 +613,7 @@ def build(self, action : typing.Callable, owner : Thing, authority : str) -> Non form.op = 'invokeaction' form.href = f'{authority}{owner._full_URL_path_prefix}{action._remote_info.URL_path}' form.htv_methodName = method.upper() - self.contentEncoding = 'application/json' + form.contentType = 'application/json' # form.additionalResponses = [AdditionalExpectedResponse().asdict()] self.forms.append(form.asdict()) diff --git a/setup.py b/setup.py index 4934dde..59172c8 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ setuptools.setup( name="hololinked", - version="0.2.0", + version="0.2.1", author="Vigneh Vaidyanathan", author_email="vignesh.vaidyanathan@hololinked.dev", description="A ZMQ-based Object Oriented RPC tool-kit with HTTP support for instrument control/data acquisition or controlling generic python objects.",