Explorar o código

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 %!s(int64=10) %!d(string=hai) anos
pai
achega
7497398551
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 {