mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-31 03:50:20 -07:00
parent
4884f08e04
commit
7d24e1c063
1 changed files with 3 additions and 1 deletions
|
@ -201,7 +201,9 @@ bool RequestParser::parseRequestLine(const QString &line)
|
|||
const QByteArray nameComponent = midView(param, 0, eqCharPos);
|
||||
const QByteArray valueComponent = midView(param, (eqCharPos + 1));
|
||||
const QString paramName = QString::fromUtf8(QByteArray::fromPercentEncoding(nameComponent).replace('+', ' '));
|
||||
const QByteArray paramValue = QByteArray::fromPercentEncoding(valueComponent).replace('+', ' ');
|
||||
const QByteArray paramValue = valueComponent.isNull()
|
||||
? ""
|
||||
: QByteArray::fromPercentEncoding(valueComponent).replace('+', ' ');
|
||||
|
||||
m_request.query[paramName] = paramValue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue