Open moshegutman opened 6 years ago
I think the fix according to https://stackoverflow.com/questions/45562662/how-can-i-use-string-slicing-subscripts-in-swift-4 is:
if let r = line.range(of: ":") {
key = trim(String(line[..<r.lowerBound]))
value = trim(String(line[r.upperBound...]))
}
Wish I read this before I just submitted the same issue. Should I keep it open because it has not been fixed ?
I'm getting the following warning about
substring(to: )
being deprecated.It's inside the
readResponse()
function