Skip to content

Commit fffda3f

Browse files
authored
fix: default to https in login url (#53)
1 parent 1719727 commit fffda3f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/commands.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ export class Commands {
2121
if (!url) {
2222
return
2323
}
24+
if (!url.startsWith("http://") && !url.startsWith("https://")) {
25+
// Default to HTTPS if not provided!
26+
// https://github.com/coder/vscode-coder/issues/44
27+
url = "https://" + url
28+
}
2429

2530
let token: string | undefined = args.length >= 2 ? args[1] : undefined
2631
if (!token) {

0 commit comments

Comments
 (0)