LibWeb: LoadRequest::operator==() should compare header values

It was only comparing header names. Thanks to @Sponji for noticing!
This commit is contained in:
Andreas Kling 2020-09-28 17:34:51 +02:00
parent 574f49e4be
commit d3d7ea7e75
Notes: sideshowbarker 2024-07-19 02:08:50 +09:00

View file

@ -64,6 +64,8 @@ public:
auto jt = other.m_headers.find(it.key);
if (jt == other.m_headers.end())
return false;
if (it.value != jt->value)
return false;
}
return m_url == other.m_url && m_method == other.m_method && m_body == other.m_body;
}