From d3d7ea7e75f016f235e0ed248afbda36003febf0 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 28 Sep 2020 17:34:51 +0200 Subject: [PATCH] LibWeb: LoadRequest::operator==() should compare header values It was only comparing header names. Thanks to @Sponji for noticing! --- Libraries/LibWeb/Loader/LoadRequest.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Libraries/LibWeb/Loader/LoadRequest.h b/Libraries/LibWeb/Loader/LoadRequest.h index ab8b8b7db3d..149ce2537c2 100644 --- a/Libraries/LibWeb/Loader/LoadRequest.h +++ b/Libraries/LibWeb/Loader/LoadRequest.h @@ -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; }