From 744c33fdfeb8acd331938e0934cc0e992a4dc720 Mon Sep 17 00:00:00 2001 From: Max Tobias Weber Date: Sat, 4 Jan 2025 12:28:49 +0100 Subject: [PATCH] Revert "fix TestQgsHttpheaders::createQgsOwsConnection to work with QT 5 and 6" This reverts commit 762ade6519df8fe071b0984ae777ac73e60d659a. --- tests/src/core/testqgshttpheaders.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/src/core/testqgshttpheaders.cpp b/tests/src/core/testqgshttpheaders.cpp index c8353dbacc09..58ad7638fd1b 100644 --- a/tests/src/core/testqgshttpheaders.cpp +++ b/tests/src/core/testqgshttpheaders.cpp @@ -145,13 +145,9 @@ void TestQgsHttpheaders::createQgsOwsConnection() QgsHttpHeaders h( QVariantMap( { { QgsHttpHeaders::KEY_REFERER, "http://test.com" }, { "other_http_header", "value" } } ) ); QgsOwsConnection::settingsHeaders->setValue( h.headers(), { "service", "name" } ); - // for different Versions of QT (5, 6) QUrlQuery produces either "url" or "url=" - QUrlQuery testUrlParam; - testUrlParam.addQueryItem( QStringLiteral( "url" ), "" ); - QgsOwsConnection ows( "service", "name" ); QCOMPARE( ows.connectionInfo(), ",authcfg=,referer=http://test.com" ); - QCOMPARE( ows.uri().encodedUri(), testUrlParam.toString() + "&http-header:other_http_header=value&http-header:referer=http://test.com" ); + QCOMPARE( ows.uri().encodedUri(), "url&http-header:other_http_header=value&http-header:referer=http://test.com" ); QgsDataSourceUri uri( QString( "https://www.ogc.org/?p1=v1" ) ); QgsDataSourceUri uri2 = ows.addWmsWcsConnectionSettings( uri, "service", "name" );