diff options
author | Andreas Kling <kling@serenityos.org> | 2022-04-09 14:45:40 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-04-09 14:50:05 +0200 |
commit | f21eb9029438cffa7fc316156b78df9f3ca46e61 (patch) | |
tree | e54c7f429f5147ac55319027830f2e3207758359 /Userland/Libraries/LibWeb/Loader | |
parent | b16918ccb9c20cdaf8cae79699e401fba6ffe685 (diff) | |
download | serenity-f21eb9029438cffa7fc316156b78df9f3ca46e61.zip |
LibWeb: Remove debug spam about proxy configuration lookups
Diffstat (limited to 'Userland/Libraries/LibWeb/Loader')
-rw-r--r-- | Userland/Libraries/LibWeb/Loader/ProxyMappings.cpp | 3 | ||||
-rw-r--r-- | Userland/Libraries/LibWeb/Loader/ResourceLoader.cpp | 1 |
2 files changed, 0 insertions, 4 deletions
diff --git a/Userland/Libraries/LibWeb/Loader/ProxyMappings.cpp b/Userland/Libraries/LibWeb/Loader/ProxyMappings.cpp index 4230a72862..65b4e1eb79 100644 --- a/Userland/Libraries/LibWeb/Loader/ProxyMappings.cpp +++ b/Userland/Libraries/LibWeb/Loader/ProxyMappings.cpp @@ -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 {}; } diff --git a/Userland/Libraries/LibWeb/Loader/ResourceLoader.cpp b/Userland/Libraries/LibWeb/Loader/ResourceLoader.cpp index 76a634f80f..730354508b 100644 --- a/Userland/Libraries/LibWeb/Loader/ResourceLoader.cpp +++ b/Userland/Libraries/LibWeb/Loader/ResourceLoader.cpp @@ -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); |