Disable URL support in the CBOR-JSON conversion in bootstrapped mode

We don't need it.

Pick-to: 6.3
Change-Id: I74249c52dc02478ba93cfffd16d1dfc0e88f55ef
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
bb10
Thiago Macieira 2022-02-08 09:29:18 -08:00
parent 5e378aaff6
commit 708de710f1
1 changed files with 5 additions and 1 deletions

View File

@ -205,10 +205,14 @@ static QJsonValue convertExtendedTypeToJson(QCborContainerPrivate *d)
switch (tag) {
case qint64(QCborKnownTags::Url):
// use the fullly-encoded URL form
#ifdef QT_BOOTSTRAPPED
break;
#else
// use the fully-encoded URL form
if (d->elements.at(1).type == QCborValue::String)
return QUrl::fromEncoded(d->byteData(1)->asByteArrayView()).toString(QUrl::FullyEncoded);
Q_FALLTHROUGH();
#endif
case qint64(QCborKnownTags::DateTimeString):
case qint64(QCborKnownTags::ExpectedBase64url):