Normalize path segments in QHttpNetworkRequest::uri
Task-number: QTBUG-69659 Change-Id: I184cc460d2e3736d042893a38aa1c11b7d443f88 Reviewed-by: Jesus Fernandez <Jesus.Fernandez@qt.io> Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io> Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
d47c287d70
commit
a0ebd98f58
@ -133,6 +133,8 @@ QByteArray QHttpNetworkRequest::uri(bool throughProxy) const
|
||||
QUrl copy = d->url;
|
||||
if (copy.path().isEmpty())
|
||||
copy.setPath(QStringLiteral("/"));
|
||||
else
|
||||
format |= QUrl::NormalizePathSegments;
|
||||
QByteArray uri = copy.toEncoded(format);
|
||||
return uri;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user