Skip to content

Commit 99d066e

Browse files
authored
Merge pull request #31 from guoye-zhang/contributors
Update contributors
2 parents 31ddb8d + 43107b6 commit 99d066e

File tree

5 files changed

+13
-6
lines changed

5 files changed

+13
-6
lines changed

CONTRIBUTORS.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ needs to be listed here.
1111

1212
### Contributors
1313

14+
- Franz Busch <[email protected]>
1415
- Guoye Zhang <[email protected]>
16+
- Jager-yoo <[email protected]>
1517
- Sergey Dmitriev <[email protected]>
1618
- Tomohiro Kumagai <[email protected]>
1719

Sources/HTTPTypes/HTTPField.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public struct HTTPField: Sendable, Hashable {
144144
}
145145

146146
static func legalizeValue(_ value: ISOLatin1String) -> ISOLatin1String {
147-
if Self._isValidValue(value._storage.utf8) {
147+
if self._isValidValue(value._storage.utf8) {
148148
return value
149149
} else {
150150
let bytes = value._storage.utf8.lazy.map { byte -> UInt8 in

Sources/HTTPTypes/HTTPRequest.swift

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,13 @@ extension HTTPRequest.PseudoHeaderFields: Codable {
289289
guard HTTPField.isValidToken(method.rawValue._storage) else {
290290
throw DecodingError.dataCorruptedError(in: container, debugDescription: "\"\(method.rawValue._storage)\" is not a valid method")
291291
}
292-
self.init(method: method, scheme: scheme, authority: authority, path: path,
293-
extendedConnectProtocol: extendedConnectProtocol)
292+
self.init(
293+
method: method,
294+
scheme: scheme,
295+
authority: authority,
296+
path: path,
297+
extendedConnectProtocol: extendedConnectProtocol
298+
)
294299
}
295300
}
296301

Sources/HTTPTypes/HTTPResponse.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public struct HTTPResponse: Sendable, Hashable {
123123
}
124124

125125
static func legalizingReasonPhrase(_ reasonPhrase: String) -> String {
126-
if Self.isValidReasonPhrase(reasonPhrase) {
126+
if self.isValidReasonPhrase(reasonPhrase) {
127127
return reasonPhrase
128128
} else {
129129
let scalars = reasonPhrase.unicodeScalars.lazy.map { scala -> UnicodeScalar in

Tests/HTTPTypesTests/HTTPTypesTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ final class HTTPTypesTests: XCTestCase {
163163
["name": "Accept-Encoding", "value": "br"],
164164
["name": "Accept-Encoding", "value": "gzip"],
165165
["name": "Content-Length", "value": "1024"],
166-
]
166+
],
167167
])
168168

169169
let decoded = try JSONDecoder().decode(HTTPRequest.self, from: encoded)
@@ -185,7 +185,7 @@ final class HTTPTypesTests: XCTestCase {
185185
"reasonPhrase": "No Content",
186186
"headerFields": [
187187
["name": "Server", "value": "HTTPServer/1.0", "indexingStrategy": 1],
188-
]
188+
],
189189
])
190190

191191
let decoded = try JSONDecoder().decode(HTTPResponse.self, from: encoded)

0 commit comments

Comments
 (0)