We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4cff10 commit 618a442Copy full SHA for 618a442
src/seclab_taskflow_agent/capi.py
@@ -67,7 +67,12 @@ def get_custom_header() -> dict[str, str]:
67
return {}
68
69
name, value = parts
70
- return {name.strip(): value.strip()}
+ name = name.strip()
71
+ value = value.strip()
72
+ if not name or not value:
73
+ logging.warning(f"Invalid AI_API_CUSTOM_HEADER: header name and value must be non-empty after stripping. Got: '{custom_header}'")
74
+ return {}
75
+ return {name: value}
76
77
78
# assume we are >= python 3.9 for our type hints
0 commit comments