mirror of
https://github.com/apple/swift-http-structured-headers
synced 2026-11-25 04:47:48 +00:00
Make tokens strings (it's easier)
This commit is contained in:
1 parent
cf08d29cb0
commit
f07f69282d
6 files changed
+52
-37
No files matched your search
@@ -81,7 +81,7 @@ extension BareItemDecoder: SingleValueDecodingContainer {
|
||||
case .string(let string):
|
||||
return string
|
||||
case .token(let token):
|
||||
return String(decoding: token, as: UTF8.self)
|
||||
return token
|
||||
default:
|
||||
throw StructuredHeaderError.invalidTypeForItem
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user