mirror of
https://github.com/apple/swift-http-structured-headers
synced 2026-11-25 04:47:48 +00:00
Update StructuredFieldValueParser to add missing visionOS guard (#67)
Update StructuredFieldValueParser to add missing visionOS guard matching the guards on the called API. This was causing failures to compile for visionOS
This commit is contained in:
1 parent
295bc9d823
commit
db6eea3692
1 file changed
+1
-1
@@ -527,7 +527,7 @@ extension StructuredFieldValueParser {
|
||||
byteArray.append(octet)
|
||||
case asciiDquote:
|
||||
#if compiler(>=6.0)
|
||||
if #available(macOS 15.0, iOS 18.0, tvOS 18.0, watchOS 11.0, *) {
|
||||
if #available(macOS 15.0, iOS 18.0, tvOS 18.0, watchOS 11.0, visionOS 2.0, *) {
|
||||
let unicodeSequence = String(validating: byteArray, as: UTF8.self)
|
||||
|
||||
guard let unicodeSequence else {
|
||||
|
||||
Reference in new issue
Block a user