mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-11 17:00:37 +00:00
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);
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue