فهرست منبع

Fixed a bug in the URLProtocol tests that was causing test failures.

It looks like HTTPBin fixed the lowercase return of the custom headers on HTTPS.
Christian Noon 10 سال پیش
والد
کامیت
08fdbdee89
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      Tests/URLProtocolTests.swift

+ 1 - 1
Tests/URLProtocolTests.swift

@@ -160,7 +160,7 @@ class URLProtocolTestCase: BaseTestCase {
         XCTAssertNil(error, "error should be nil")
 
         if let headers = response?.allHeaderFields as? [String: String] {
-            XCTAssertEqual(headers["urlrequest-header"] ?? "", "foobar", "urlrequest-header should be foobar")
+            XCTAssertEqual(headers["URLRequest-Header"] ?? "", "foobar", "urlrequest-header should be foobar")
             XCTAssertNil(headers["Session-Configuration-Header"], "Session-Configuration-Header should be nil")
         } else {
             XCTFail("headers should not be nil")