Skip to content

fix: upgrade http to https in session URL for non-local hosts#234

Merged
socksy merged 1 commit intodevelopfrom
fix/upgrade-session-http-to-https
Apr 13, 2026
Merged

fix: upgrade http to https in session URL for non-local hosts#234
socksy merged 1 commit intodevelopfrom
fix/upgrade-session-http-to-https

Conversation

@socksy
Copy link
Copy Markdown
Contributor

@socksy socksy commented Mar 25, 2026

When logging in with an http:// tower URL against a remote server, subsequent POST requests (like session refresh) get silently downgraded to GET on 301/302 redirects per RFC 7231, causing 404s. This upgrades http to https at login time for non-localhost URLs.

When logging in with an http:// URL against a remote server, reqwest
silently downgrades POST to GET on 301/302 redirects (per RFC 7231),
causing subsequent commands like `tower teams switch` to fail with 404.
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Mar 25, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 329727b4-9372-4012-8f7e-d5c08c608208

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/upgrade-session-http-to-https

Comment @coderabbitai help to get the list of available commands and usage tips.

@socksy socksy requested review from bradhe and sammuti March 25, 2026 15:32
Copy link
Copy Markdown
Contributor

@konstantinoscs konstantinoscs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you tested it and it works!

@socksy socksy merged commit e5bf397 into develop Apr 13, 2026
30 checks passed
@socksy socksy deleted the fix/upgrade-session-http-to-https branch April 13, 2026 12:29
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.

2 participants