1// Copyright (C) 2024 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#include "qhttpheadershelper_p.h"
6
7#include <QtNetwork/qhttpheaders.h>
8
9QT_BEGIN_NAMESPACE
10
11bool QHttpHeadersHelper::compareStrict(const QHttpHeaders &left, const QHttpHeaders &right)
12{
13 if (left.size() != right.size())
14 return false;
15
16 for (qsizetype i = 0; i < left.size(); ++i) {
17 if (left.nameAt(i) != right.nameAt(i))
18 return false;
19 if (left.valueAt(i) != right.valueAt(i))
20 return false;
21 }
22
23 return true;
24}
25
26QT_END_NAMESPACE
27

source code of qtbase/src/network/access/qhttpheadershelper.cpp