Update CONTRIBUTORS

This commit is contained in:
Guoye Zhang committed 2024-07-16 17:10:23 -07:00
1 parent c30771e408
commit 511d828079
3 files changed
+5 -4

No files matched your search

-1
View File
@@ -5,7 +5,6 @@
/Packages
.xcode
/*.xcodeproj
.xcode
DerivedData
.swiftpm/
+2
View File
@@ -11,6 +11,7 @@ needs to be listed here.
### Contributors
- Eric Rosenberg <eric_rosenberg@apple.com>
- Franz Busch <f.busch@apple.com>
- Guoye Zhang <guoye_zhang@apple.com>
- Gwynne Raskind <gwynne@vapor.codes>
@@ -21,6 +22,7 @@ needs to be listed here.
- Si Beaumont <beaumont@apple.com>
- Tim Condon <0xTim@users.noreply.github.com>
- Tomohiro Kumagai <tomo@ez-net.jp>
- zunda <47569369+zunda-pixel@users.noreply.github.com>
**Updating this list**
+3 -3
View File
@@ -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
}
}