Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.

Commit d8e1a84

Browse files
authored
Update Surrogates URL (#1747)
Task/Issue URL: https://app.asana.com/0/1201037661562251/1205688161731059/f Tech Design URL: CC: **Description**: Update surrogates URL
1 parent 1442991 commit d8e1a84

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

DuckDuckGo/AppDelegate/AppConfigurationURLProvider.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ struct AppConfigurationURLProvider: ConfigurationURLProviding {
2727
case .bloomFilterSpec: return URL(string: "https://staticcdn.duckduckgo.com/https/https-mobile-v2-bloom-spec.json")!
2828
case .bloomFilterExcludedDomains: return URL(string: "https://staticcdn.duckduckgo.com/https/https-mobile-v2-false-positives.json")!
2929
case .privacyConfiguration: return URL(string: "https://staticcdn.duckduckgo.com/trackerblocking/config/v3/macos-config.json")!
30-
case .surrogates: return URL(string: "https://duckduckgo.com/contentblocking.js?l=surrogates")!
30+
case .surrogates: return URL(string: "https://staticcdn.duckduckgo.com/surrogates.txt")!
3131
case .trackerDataSet: return URL(string: "https://staticcdn.duckduckgo.com/trackerblocking/v5/current/macos-tds.json")!
3232
// In archived repo, to be refactored shortly (https://staticcdn.duckduckgo.com/useragents/social_ctp_configuration.json)
3333
case .FBConfig: return URL(string: "https://staticcdn.duckduckgo.com/useragents/")!

UnitTests/AppDelegate/AppConfigurationURLProviderTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ final class AppConfigurationURLProviderTests: XCTestCase {
2626
XCTAssertEqual(AppConfigurationURLProvider().url(for: .bloomFilterSpec).absoluteString, "https://staticcdn.duckduckgo.com/https/https-mobile-v2-bloom-spec.json")
2727
XCTAssertEqual(AppConfigurationURLProvider().url(for: .bloomFilterExcludedDomains).absoluteString, "https://staticcdn.duckduckgo.com/https/https-mobile-v2-false-positives.json")
2828
XCTAssertEqual(AppConfigurationURLProvider().url(for: .privacyConfiguration).absoluteString, "https://staticcdn.duckduckgo.com/trackerblocking/config/v3/macos-config.json")
29-
XCTAssertEqual(AppConfigurationURLProvider().url(for: .surrogates).absoluteString, "https://duckduckgo.com/contentblocking.js?l=surrogates")
29+
XCTAssertEqual(AppConfigurationURLProvider().url(for: .surrogates).absoluteString, "https://staticcdn.duckduckgo.com/surrogates.txt")
3030
XCTAssertEqual(AppConfigurationURLProvider().url(for: .trackerDataSet).absoluteString, "https://staticcdn.duckduckgo.com/trackerblocking/v5/current/macos-tds.json")
3131
XCTAssertEqual(AppConfigurationURLProvider().url(for: .FBConfig).absoluteString, "https://staticcdn.duckduckgo.com/useragents/")
3232
}

0 commit comments

Comments
 (0)