diff --git a/pyproject.toml b/pyproject.toml index 16fea7b..5b4d4ad 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "digiflow" -version = "5.4.7" +version = "5.4.8" description = "Father's Little Digitization Workflow Helper" readme = "README.md" requires-python = ">=3.8" diff --git a/src/digiflow/record/record_service.py b/src/digiflow/record/record_service.py index e52b0f7..7cbd077 100644 --- a/src/digiflow/record/record_service.py +++ b/src/digiflow/record/record_service.py @@ -15,13 +15,11 @@ import digiflow.record as df_r -_MIME_TXT = "text/plain" -_MIME_JSON = "application/json" DEFAULT_HEADER = { - "Content-Type": _MIME_JSON + "Content-Type": "application/json" } TEXT_HEADER = { - "Content-Type": _MIME_TXT + "Content-Type": "text/plain" } DEFAULT_COMMAND_NEXT = 'next' DEFAULT_COMMAND_UPDATE = 'update' @@ -121,7 +119,7 @@ def do_GET(self): state, data = self.get_next_record(file_name, client_name, get_record_state, set_record_state) if isinstance(data, str): - self._respond(state, _MIME_TXT) + self._respond(state, headers=TEXT_HEADER) self.wfile.write(data.encode('utf-8')) else: self._respond(state)