Helper to check if a URL starts with a given prefix
| 46 | |
| 47 | // Helper to check if a URL starts with a given prefix |
| 48 | static bool UrlStartsWith(const std::string& url, const std::string& prefix) { |
| 49 | if (prefix.size() > url.size()) return false; |
| 50 | return url.compare(0, prefix.size(), prefix) == 0; |
| 51 | } |
| 52 | |
| 53 | void InitializeSecurityConfig() { |
| 54 | std::call_once(s_securityConfigInitFlag, []() { |
no test coverage detected