mirror of
https://github.com/apple/swift-http-types
synced 2026-11-29 05:14:22 +00:00
Update CONTRIBUTORS
This commit is contained in:
1 parent
c30771e408
commit
511d828079
3 files changed
+5
-4
No files matched your search
@@ -110,7 +110,7 @@ struct HTTPParsedFields {
|
||||
if self.status != nil {
|
||||
throw ParsingError.requestWithResponsePseudo
|
||||
}
|
||||
try validateFields()
|
||||
try self.validateFields()
|
||||
var request = HTTPRequest(method: requestMethod, scheme: self.scheme, authority: self.authority, path: self.path, headerFields: self.fields)
|
||||
if let extendedConnectProtocol = self.extendedConnectProtocol {
|
||||
request.pseudoHeaderFields.extendedConnectProtocol = HTTPField(name: .protocol, uncheckedValue: extendedConnectProtocol)
|
||||
@@ -130,7 +130,7 @@ struct HTTPParsedFields {
|
||||
if !HTTPResponse.Status.isValidStatus(statusString) {
|
||||
throw ParsingError.invalidStatus
|
||||
}
|
||||
try validateFields()
|
||||
try self.validateFields()
|
||||
return HTTPResponse(status: .init(code: Int(statusString)!), headerFields: self.fields)
|
||||
}
|
||||
}
|
||||
@@ -140,7 +140,7 @@ struct HTTPParsedFields {
|
||||
if self.method != nil || self.scheme != nil || self.authority != nil || self.path != nil || self.extendedConnectProtocol != nil || self.status != nil {
|
||||
throw ParsingError.trailerFieldsWithPseudo
|
||||
}
|
||||
try validateFields()
|
||||
try self.validateFields()
|
||||
return self.fields
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user