@@ -244,7 +244,7 @@ public enum ParameterEncoding {
while index != string.endIndex {
let startIndex = index
let endIndex = index.advancedBy(batchSize, limit: string.endIndex)
- let range = Range(start: startIndex, end: endIndex)
+ let range = startIndex..<endIndex
let substring = string.substringWithRange(range)
@@ -484,7 +484,7 @@ extension Request: CustomDebugStringConvertible {
let protectionSpace = NSURLProtectionSpace(
host: host,
port: URL.port?.integerValue ?? 0,
- `protocol`: URL.scheme,
+ protocol: URL.scheme,
realm: host,
authenticationMethod: NSURLAuthenticationMethodHTTPBasic
)
@@ -439,7 +439,7 @@ class RedirectResponseTestCase: BaseTestCase {
var totalRedirectCount = 0
delegate.taskWillPerformHTTPRedirection = { _, _, _, request in
- ++totalRedirectCount
+ totalRedirectCount += 1
return request
}