LibWeb: LoadRequest::operator==() should compare header values
It was only comparing header names. Thanks to @Sponji for noticing!
This commit is contained in:
parent
574f49e4be
commit
d3d7ea7e75
Notes:
sideshowbarker
2024-07-19 02:08:50 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/d3d7ea7e75f
1 changed files with 2 additions and 0 deletions
|
@ -64,6 +64,8 @@ public:
|
||||||
auto jt = other.m_headers.find(it.key);
|
auto jt = other.m_headers.find(it.key);
|
||||||
if (jt == other.m_headers.end())
|
if (jt == other.m_headers.end())
|
||||||
return false;
|
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;
|
return m_url == other.m_url && m_method == other.m_method && m_body == other.m_body;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue