瀏覽代碼

Updated documentation around rdar://26849668 in the URLProtocol tests.

Christian Noon 9 年之前
父節點
當前提交
4dadb7af68
共有 1 個文件被更改,包括 4 次插入6 次删除
  1. 4 6
      Tests/URLProtocolTests.swift

+ 4 - 6
Tests/URLProtocolTests.swift

@@ -78,12 +78,10 @@ class ProxyURLProtocol: URLProtocol {
     // MARK: Loading Methods
 
     override func startLoading() {
-        // rdar://26849668
-        // Hopefully will be fixed in a future seed
-        // URLProtocol had some API's that didnt make the value type conversion
-        let mutableRequest = (request.urlRequest as NSURLRequest).mutableCopy() as! NSMutableURLRequest
-        URLProtocol.setProperty(true, forKey: PropertyKeys.handledByForwarderURLProtocol, in: mutableRequest)
-        activeTask = session.dataTask(with: mutableRequest as URLRequest)
+        // rdar://26849668 - URLProtocol had some API's that didnt make the value type conversion
+        let urlRequest = (request.urlRequest as NSURLRequest).mutableCopy() as! NSMutableURLRequest
+        URLProtocol.setProperty(true, forKey: PropertyKeys.handledByForwarderURLProtocol, in: urlRequest)
+        activeTask = session.dataTask(with: urlRequest as URLRequest)
         activeTask?.resume()
     }