diff --git a/src/base/http/requestparser.cpp b/src/base/http/requestparser.cpp index e6e1853f6..3f74b7a76 100644 --- a/src/base/http/requestparser.cpp +++ b/src/base/http/requestparser.cpp @@ -202,7 +202,7 @@ bool RequestParser::parseRequestLine(const QString &line) const QByteArray valueComponent = midView(param, (eqCharPos + 1)); const QString paramName = QString::fromUtf8(QByteArray::fromPercentEncoding(nameComponent).replace('+', ' ')); const QByteArray paramValue = valueComponent.isNull() - ? "" + ? QByteArray("") : QByteArray::fromPercentEncoding(valueComponent).replace('+', ' '); m_request.query[paramName] = paramValue;