mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-09 05:14:23 +00:00
Fix HTTP request parsing on Qt5.
This commit is contained in:
parent
b198c074d6
commit
268562bff3
@ -113,7 +113,7 @@ void HttpRequestParser::writeMessage(const QByteArray& ba) {
|
|||||||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
|
#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
|
||||||
QString tmp(m_data);
|
QString tmp(m_data);
|
||||||
QUrlQuery query(tmp);
|
QUrlQuery query(tmp);
|
||||||
QListIterator<QPair<QString, QString> > i(query.queryItems());
|
QListIterator<QPair<QString, QString> > i(query.queryItems(QUrl::FullyDecoded));
|
||||||
#else
|
#else
|
||||||
url.setEncodedQuery(m_data);
|
url.setEncodedQuery(m_data);
|
||||||
QListIterator<QPair<QString, QString> > i(url.queryItems());
|
QListIterator<QPair<QString, QString> > i(url.queryItems());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user