diff --git a/ReadBeeb/BbcMedia/BbcMedia.swift b/ReadBeeb/BbcMedia/BbcMedia.swift index 92bbba0..6eede5d 100644 --- a/ReadBeeb/BbcMedia/BbcMedia.swift +++ b/ReadBeeb/BbcMedia/BbcMedia.swift @@ -98,7 +98,7 @@ struct BbcMedia { configuration.httpAdditionalHeaders = [ // Pretend to be the BBC News app // Example: BBCNews/25339 (iPhone15,2; iOS 16.6) MediaSelectorClient/7.0.0 BBCHTTPClient/9.0.0 - // swiftlint:disable:next line_length force_https + // swiftlint:disable:next line_length "User-Agent": "BBCNews/25339 (\(UIDevice.current.modelIdentifier); \(UIDevice.current.systemName) \(UIDevice.current.systemVersion)) MediaSelectorClient/7.0.0 BBCHTTPClient/9.0.0" ] self.session = URLSession(configuration: configuration) diff --git a/ReadBeeb/Components/Story/TextContainer.swift b/ReadBeeb/Components/Story/TextContainer.swift index a1e2274..20617e8 100644 --- a/ReadBeeb/Components/Story/TextContainer.swift +++ b/ReadBeeb/Components/Story/TextContainer.swift @@ -55,7 +55,6 @@ struct TextContainer: View { } } .environment(\.openURL, OpenURLAction { url in - // swiftlint:disable:next force_https let schemesToHandle = ["http", "https"] guard let scheme = url.scheme else { return .systemAction }