Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: support http coder urls#217

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ethanndickson merged 1 commit intomainfromethan/support-http
Aug 6, 2025
Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletionsCoder-Desktop/Coder-Desktop/Views/LoginForm.swift
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -194,8 +194,8 @@ func validateURL(_ url: String) throws(LoginError) -> URL {
guard let url = URL(string: url) else {
throw .invalidURL
}
guard url.scheme == "https" else {
throw .httpsRequired
guard url.scheme == "https"|| url.scheme == "http"else {
throw .invalidScheme
}
guard url.host != nil else {
throw .noHost
Expand All@@ -204,7 +204,7 @@ func validateURL(_ url: String) throws(LoginError) -> URL {
}

enum LoginError: Error {
casehttpsRequired
caseinvalidScheme
case noHost
case invalidURL
case outdatedCoderVersion
Expand All@@ -213,12 +213,12 @@ enum LoginError: Error {

var description: String {
switch self {
case .httpsRequired:
"URL must use HTTPS"
case .invalidScheme:
"CoderURL must use HTTPS or HTTP"
case .noHost:
"URL must have a host"
"CoderURL must have a host"
case .invalidURL:
"Invalid URL"
"InvalidCoderURL"
case .outdatedCoderVersion:
"""
The Coder deployment must be version \(Validator.minimumCoderVersion)
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp