We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7321632 + 02f061c commit 24a2134Copy full SHA for 24a2134
Sources/HttpRequest.swift
@@ -124,16 +124,16 @@ public class HttpRequest {
124
}
125
126
private func nextMultiPartLine(_ generator: inout IndexingIterator<[UInt8]>) -> String? {
127
- var result = String()
+ var temp = [UInt8]()
128
while let value = generator.next() {
129
if value > HttpRequest.CR {
130
- result.append(Character(UnicodeScalar(value)))
+ temp.append(value)
131
132
if value == HttpRequest.NL {
133
break
134
135
136
- return result
+ return String(bytes: temp, encoding: String.Encoding.utf8)
137
138
139
static let CR = UInt8(13)
0 commit comments