mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 10:08:10 +00:00
LibWeb: Remove debug spam about proxy configuration lookups
This commit is contained in:
parent
b16918ccb9
commit
f21eb90294
2 changed files with 0 additions and 4 deletions
|
@ -16,9 +16,7 @@ Core::ProxyData Web::ProxyMappings::proxy_for_url(AK::URL const& url) const
|
|||
{
|
||||
auto url_string = url.to_string();
|
||||
for (auto& it : m_mappings) {
|
||||
dbgln("Checking {} against {}...", url, it.key);
|
||||
if (url_string.matches(it.key)) {
|
||||
dbgln("Matched!");
|
||||
auto result = Core::ProxyData::parse_url(m_proxies[it.value]);
|
||||
if (result.is_error()) {
|
||||
dbgln("Failed to parse proxy URL: {}", m_proxies[it.value]);
|
||||
|
@ -28,7 +26,6 @@ Core::ProxyData Web::ProxyMappings::proxy_for_url(AK::URL const& url) const
|
|||
}
|
||||
}
|
||||
|
||||
dbgln("No luck!");
|
||||
return {};
|
||||
}
|
||||
|
||||
|
|
|
@ -215,7 +215,6 @@ void ResourceLoader::load(LoadRequest& request, Function<void(ReadonlyBytes, Has
|
|||
|
||||
if (url.protocol() == "http" || url.protocol() == "https" || url.protocol() == "gemini") {
|
||||
auto proxy = ProxyMappings::the().proxy_for_url(url);
|
||||
dbgln("Proxy for {} is {}", url, proxy.type == decltype(proxy.type)::SOCKS5 ? IPv4Address(proxy.host_ipv4).to_string() : "(direct)");
|
||||
|
||||
HashMap<String, String> headers;
|
||||
headers.set("User-Agent", m_user_agent);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue