Skip to content

Commit 2488b8c

Browse files
committed
fix(api): fix public modules url to include https scheme
- Updated the _public_modules_url function to prepend "https://" to the public_api_host. - This ensures the URL is correctly formed for external access.
1 parent fa85120 commit 2488b8c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

libs/naas-abi/naas_abi/apps/nexus/apps/api/app/services/agents/adapters/primary/agents__primary_adapter__FastAPI.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def _public_modules_url(path: str) -> str:
218218
from naas_abi import ABIModule
219219

220220
public_api_host = ABIModule.get_instance().configuration.global_config.public_api_host
221-
return f"{public_api_host}/modules/{path.lstrip('/')}"
221+
return f"https://{public_api_host}/modules/{path.lstrip('/')}"
222222

223223

224224
@router.get("/")

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)