Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion examples/EmergencyManagement/web_gateway/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,9 @@ def _normalise_optional_hex(value: Optional[str]) -> Optional[str]:

if isinstance(value, str):
cleaned = value.strip()
return cleaned or None
if not cleaned:
return None
return cleaned.lower()
return None


Expand Down
2 changes: 2 additions & 0 deletions reticulum_openapi/integrations/fastapi/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ def load_lxmf_client_settings(
config_data = {}

settings = LXMFClientSettings(**config_data)
if settings.shared_instance_rpc_key:
settings.shared_instance_rpc_key = settings.shared_instance_rpc_key.lower()
if require_server_identity and not settings.server_identity_hash:
raise ValueError("server_identity_hash must be configured")
return settings
Expand Down
Loading