Skip to content

Commit

Permalink
Normalize path segments in QHttpNetworkRequest::uri
Browse files Browse the repository at this point in the history
Task-number: QTBUG-69659
Change-Id: I184cc460d2e3736d042893a38aa1c11b7d443f88
Reviewed-by: Jesus Fernandez <[email protected]>
Reviewed-by: Timur Pocheptsov <[email protected]>
Reviewed-by: Mårten Nordheim <[email protected]>
Reviewed-by: Thiago Macieira <[email protected]>
  • Loading branch information
paoletto authored and ec1oud committed Aug 16, 2018
1 parent d47c287 commit a0ebd98
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/network/access/qhttpnetworkrequest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a0ebd98

Please sign in to comment.