summaryrefslogtreecommitdiff
path: root/DomainDig
diff options
context:
space:
mode:
Diffstat (limited to 'DomainDig')
-rw-r--r--DomainDig/DomainDig/DomainDebugLog.swift4
-rw-r--r--DomainDig/IntegrationService.swift2
2 files changed, 5 insertions, 1 deletions
diff --git a/DomainDig/DomainDig/DomainDebugLog.swift b/DomainDig/DomainDig/DomainDebugLog.swift
index 12a6cc5..0898e4a 100644
--- a/DomainDig/DomainDig/DomainDebugLog.swift
+++ b/DomainDig/DomainDig/DomainDebugLog.swift
@@ -2,7 +2,11 @@ import Foundation
import os
enum DomainDebugLog {
+#if DEBUG
static let enabled = true
+#else
+ static let enabled = false
+#endif
private static let logger = Logger(subsystem: "co.zerolabs.domain-dig", category: "Debug")
static func debug(_ message: String) {
diff --git a/DomainDig/IntegrationService.swift b/DomainDig/IntegrationService.swift
index dba8034..9948441 100644
--- a/DomainDig/IntegrationService.swift
+++ b/DomainDig/IntegrationService.swift
@@ -555,7 +555,7 @@ private enum HTTPIntegrationClient {
headers: [String: String],
timeoutSeconds: Double
) async throws {
- guard let url = URL(string: urlString) else {
+ guard let url = URL(string: urlString), url.scheme?.lowercased() == "https" else {
throw IntegrationError.invalidURL
}