瀏覽代碼

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

It was only comparing header names. Thanks to @Sponji for noticing!
Andreas Kling 4 年之前
父節點
當前提交
d3d7ea7e75
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Libraries/LibWeb/Loader/LoadRequest.h

+ 2 - 0
Libraries/LibWeb/Loader/LoadRequest.h

@@ -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;
     }
     }