diff options
Diffstat (limited to 'src/quicktestutils/qml/testhttpserver.cpp')
-rw-r--r-- | src/quicktestutils/qml/testhttpserver.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/quicktestutils/qml/testhttpserver.cpp b/src/quicktestutils/qml/testhttpserver.cpp index ca574e421c..f554977468 100644 --- a/src/quicktestutils/qml/testhttpserver.cpp +++ b/src/quicktestutils/qml/testhttpserver.cpp @@ -80,6 +80,11 @@ The following request urls will then result in the appropriate action: \endtable */ +static QList<QByteArrayView> ignoredHeaders = { + "HTTP2-Settings", // We ignore this + "Upgrade", // We ignore this as well +}; + static QUrl localHostUrl(quint16 port) { QUrl url; @@ -278,6 +283,12 @@ void TestHTTPServer::readyRead() break; } } + for (QByteArrayView ignore : ignoredHeaders) { + if (line.startsWith(ignore)) { + prefixFound = true; + break; + } + } if (!prefixFound && !m_waitData.headerExactMatches.contains(line)) { qWarning() << "TestHTTPServer: Unexpected header:" << line |