Skip to content

Commit d47c62c

Browse files
marcelklehrCopilot
andauthored
fix: Refactor to store absolute base URL without trailing slash
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Marcel Klehr <mklehr@gmx.net>
1 parent eb8ae82 commit d47c62c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ex_app/lib/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ async def get_absolute_base_url(nc: AsyncNextcloudApp) -> str:
6464
))['absolute_url'].rstrip('/')
6565
except Exception as e:
6666
print(f"Could not resolve absolute Nextcloud URL, falling back to endpoint: {e}")
67-
return nc.app_cfg.endpoint
67+
_absolute_base_url = nc.app_cfg.endpoint.rstrip('/')
6868
return _absolute_base_url
6969

7070

0 commit comments

Comments
 (0)