We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49bdd2c commit afbe9c4Copy full SHA for afbe9c4
Sources/SwiftAssRenderer/Loader/ContentsLoader.swift
@@ -47,7 +47,7 @@ struct ContentsLoader: ContentsLoaderType {
47
URLSession
48
.shared
49
.dataTaskPublisher(for: url)
50
- .map { String(decoding: $0.data, as: UTF8.self) }
+ .map { String(data: $0.data, encoding: .utf8) }
51
.mapError { $0 as Error }
52
.eraseToAnyPublisher()
53
}
0 commit comments