Skip to content

Commit ae67c81

Browse files
authored
Merge pull request #59 from guoye-zhang/contributors
Update CONTRIBUTORS
2 parents c30771e + 511d828 commit ae67c81

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
/Packages
66
.xcode
77
/*.xcodeproj
8-
.xcode
98
DerivedData
109

1110
.swiftpm/

CONTRIBUTORS.txt

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ needs to be listed here.
1111

1212
### Contributors
1313

14+
- Eric Rosenberg <[email protected]>
1415
- Franz Busch <[email protected]>
1516
- Guoye Zhang <[email protected]>
1617
- Gwynne Raskind <[email protected]>
@@ -21,6 +22,7 @@ needs to be listed here.
2122
- Si Beaumont <[email protected]>
2223
- Tim Condon <[email protected]>
2324
- Tomohiro Kumagai <[email protected]>
25+
2426

2527
**Updating this list**
2628

Sources/HTTPTypes/HTTPParsedFields.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ struct HTTPParsedFields {
110110
if self.status != nil {
111111
throw ParsingError.requestWithResponsePseudo
112112
}
113-
try validateFields()
113+
try self.validateFields()
114114
var request = HTTPRequest(method: requestMethod, scheme: self.scheme, authority: self.authority, path: self.path, headerFields: self.fields)
115115
if let extendedConnectProtocol = self.extendedConnectProtocol {
116116
request.pseudoHeaderFields.extendedConnectProtocol = HTTPField(name: .protocol, uncheckedValue: extendedConnectProtocol)
@@ -130,7 +130,7 @@ struct HTTPParsedFields {
130130
if !HTTPResponse.Status.isValidStatus(statusString) {
131131
throw ParsingError.invalidStatus
132132
}
133-
try validateFields()
133+
try self.validateFields()
134134
return HTTPResponse(status: .init(code: Int(statusString)!), headerFields: self.fields)
135135
}
136136
}
@@ -140,7 +140,7 @@ struct HTTPParsedFields {
140140
if self.method != nil || self.scheme != nil || self.authority != nil || self.path != nil || self.extendedConnectProtocol != nil || self.status != nil {
141141
throw ParsingError.trailerFieldsWithPseudo
142142
}
143-
try validateFields()
143+
try self.validateFields()
144144
return self.fields
145145
}
146146
}

0 commit comments

Comments
 (0)