Skip to content

Commit

Permalink
Merge pull request #59 from guoye-zhang/contributors
Browse files Browse the repository at this point in the history
Update CONTRIBUTORS
  • Loading branch information
guoye-zhang authored Jul 17, 2024
2 parents c30771e + 511d828 commit ae67c81
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
/Packages
.xcode
/*.xcodeproj
.xcode
DerivedData

.swiftpm/
Expand Down
2 changes: 2 additions & 0 deletions CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ needs to be listed here.

### Contributors

- Eric Rosenberg <[email protected]>
- Franz Busch <[email protected]>
- Guoye Zhang <[email protected]>
- Gwynne Raskind <[email protected]>
Expand All @@ -21,6 +22,7 @@ needs to be listed here.
- Si Beaumont <[email protected]>
- Tim Condon <[email protected]>
- Tomohiro Kumagai <[email protected]>
- zunda <[email protected]>

**Updating this list**

Expand Down
6 changes: 3 additions & 3 deletions Sources/HTTPTypes/HTTPParsedFields.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
}
}
Expand All @@ -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
}
}
Expand Down

0 comments on commit ae67c81

Please sign in to comment.