Commit 77a42a8b4f
Unsigned
Layout: unified · split
DomainDig/DomainDig/DomainDebugLog.swift +4
| @@ -2,7 +2,11 @@ import Foundation | ||
| 2 | 2 | import os |
| 3 | 3 | |
| 4 | 4 | enum DomainDebugLog { |
| 5 | #if DEBUG | |
| 5 | 6 | static let enabled = true |
| 7 | #else | |
| 8 | static let enabled = false | |
| 9 | #endif | |
| 6 | 10 | private static let logger = Logger(subsystem: "co.zerolabs.domain-dig", category: "Debug") |
| 7 | 11 | |
| 8 | 12 | static func debug(_ message: String) { |
DomainDig/IntegrationService.swift +1 −1
| @@ -555,7 +555,7 @@ private enum HTTPIntegrationClient { | ||
| 555 | 555 | headers: [String: String], |
| 556 | 556 | timeoutSeconds: Double |
| 557 | 557 | ) async throws { |
| 558 | guard let url = URL(string: urlString) else { | |
| 558 | guard let url = URL(string: urlString), url.scheme?.lowercased() == "https" else { | |
| 559 | 559 | throw IntegrationError.invalidURL |
| 560 | 560 | } |
| 561 | 561 | |