Update comment

This commit is contained in:
Guoye Zhang committed 2024-04-24 10:37:47 -07:00
1 parent 20d5ed91ae
commit c8357002a1
1 file changed
+2 -1
+2 -1
View File
@@ -71,7 +71,8 @@ public struct HTTPField: Sendable, Hashable {
/// Create an HTTP field from a name and a value. Leniently legalize the value.
/// - Parameters:
/// - name: The HTTP field name.
/// - value: The HTTP field value. Newlines and NULs are converted into space characters.
/// - lenientValue: The HTTP field value. Newlines and NULs are converted into space
/// characters.
public init(name: Name, lenientValue: some Collection<UInt8>) {
self.name = name
self.rawValue = Self.lenientLegalizeValue(ISOLatin1String(lenientValue))