We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d675f0 commit 2e05264Copy full SHA for 2e05264
Foundation/URLSession/Message.swift
@@ -55,7 +55,7 @@ extension _NativeProtocol._ParsedResponseHeader {
55
data[data.endIndex - 2] == _Delimiters.CR &&
56
data[data.endIndex - 1] == _Delimiters.LF
57
else { return nil }
58
- let lineBuffer = data.subdata(in: Range(data.startIndex..<data.endIndex-2))
+ let lineBuffer = data.subdata(in: data.startIndex..<data.endIndex-2)
59
guard let line = String(data: lineBuffer, encoding: .utf8) else { return nil}
60
return byAppending(headerLine: line)
61
}
0 commit comments