Skip to content

fix/preserve URL scheme in configure_server tool - #24

Open
lgrawet wants to merge 1 commit into
hummingbot:mainfrom
lgrawet:fix/preserve-url-scheme-in-configure-server
Open

fix/preserve URL scheme in configure_server tool#24
lgrawet wants to merge 1 commit into
hummingbot:mainfrom
lgrawet:fix/preserve-url-scheme-in-configure-server

Conversation

@lgrawet

@lgrawet lgrawet commented Jul 22, 2026

Copy link
Copy Markdown

The configure_server tool was always building the new URL with 'http://', ignoring the existing URL scheme. This caused HTTPS connections to be downgraded to HTTP when updating server configuration (e.g. changing the port or username).

Fix: Extract the scheme from the current URL via urlparse and use it when constructing the new URL, defaulting to 'http' if no scheme is found.

The configure_server tool was always building the new URL with 'http://',
ignoring the existing URL scheme. This caused HTTPS connections to be
downgraded to HTTP when updating server configuration (e.g. changing
the port or username).

Fix: Extract the scheme from the current URL via urlparse and use it
when constructing the new URL, defaulting to 'http' if no scheme is found.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant