diff --git a/FlyingFox/Sources/HTTPDecoder+StandardizePath.swift b/FlyingFox/Sources/HTTPDecoder+StandardizePath.swift index 68c0a55..5837d01 100644 --- a/FlyingFox/Sources/HTTPDecoder+StandardizePath.swift +++ b/FlyingFox/Sources/HTTPDecoder+StandardizePath.swift @@ -42,10 +42,11 @@ extension HTTPDecoder { #if canImport(Darwin) #if compiler(>=6.2) if !fallback, #available(macOS 26.0, iOS 26.0, tvOS 26.0, watchOS 26.0, visionOS 26.0, *) { - return URL(string: path)?.standardized.path - } else { - return standardizePathDarwinFallback(path) + if #unavailable(macOS 27.0, iOS 27.0, tvOS 27.0, watchOS 27.0, visionOS 27.0) { + return URL(string: path)?.standardized.path + } } + return standardizePathDarwinFallback(path) #else return standardizePathDarwinFallback(path) #endif