Pārlūkot izejas kodu

Fixed warning: "./Carthage/Checkouts/swifter/Sources/HttpRequest.swift:143:43: warning: 'init(start: end:)' is deprecated: it will be removed in Swift 3. Use the '..<' operator." ( #102 ).

Damian Kołakowski 10 gadi atpakaļ
vecāks
revīzija
7497398551
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      Sources/HttpRequest.swift

+ 1 - 1
Sources/HttpRequest.swift

@@ -140,7 +140,7 @@ public class HttpRequest {
             matchOffset = ( x == boundaryArray[matchOffset] ? matchOffset + 1 : 0 )
             body.append(x)
             if matchOffset == boundaryArray.count {
-                body.removeRange(Range<Int>(start: body.count-matchOffset, end: body.count))
+                body.removeRange(Range<Int>(body.count-matchOffset ..< body.count))
                 if body.last == HttpRequest.NL {
                     body.removeLast()
                     if body.last == HttpRequest.CR {