forked from len0rd/rockbox
percent-encode the query parts of a request too, not only the path.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17263 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
3fa414d959
commit
be594f6c8c
1 changed files with 2 additions and 1 deletions
|
@ -221,7 +221,8 @@ bool HttpGet::getFile(const QUrl &url)
|
||||||
if(url.hasQuery()) {
|
if(url.hasQuery()) {
|
||||||
query = "?";
|
query = "?";
|
||||||
for(int i = 0; i < qitems.size(); i++)
|
for(int i = 0; i < qitems.size(); i++)
|
||||||
query += qitems.at(i).first + "=" + qitems.at(i).second + "&";
|
query += QUrl::toPercentEncoding(qitems.at(i).first, "/") + "="
|
||||||
|
+ QUrl::toPercentEncoding(qitems.at(i).second, "/") + "&";
|
||||||
qDebug() << query;
|
qDebug() << query;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue