Skip to content

Commit 2745c2a

Browse files
committed
mesh-1786: use _SEND_HEADERS properly
1 parent 05bbf5c commit 2745c2a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

mesh_client/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def _get_version(*names: str) -> str:
9090
{
9191
"workflowid": "Mex-WorkflowID",
9292
"file_name": "Mex-FileName",
93-
"local_id": "Mex-LocalID",
93+
"localid": "Mex-LocalID",
9494
"content_encrypted": "Mex-Content-Encrypted",
9595
"content_compressed": "Mex-Content-Compressed",
9696
"content_checksum": "Mex-Content-Checksum",
@@ -579,7 +579,7 @@ def _headers(recipient: str, chunk_no: int, total_chunks: int, compress: bool, *
579579
if key in _SEND_HEADERS:
580580
if key in _BOOLEAN_HEADERS:
581581
value = "Y" if value else "N"
582-
headers[_OPTIONAL_HEADERS[key]] = str(value)
582+
headers[_SEND_HEADERS[key]] = str(value)
583583
else:
584584
optional_args = ", ".join(["recipient", "data", *list(_OPTIONAL_HEADERS.keys())])
585585
raise TypeError(f"Unrecognised keyword argument '{key}'. optional arguments are: {optional_args}")

0 commit comments

Comments
 (0)