mirror of
https://github.com/lubosz/overte.git
synced 2025-04-07 04:42:49 +02:00
Fix domain server label not handling spaces correctly
This commit is contained in:
parent
393b55424f
commit
3a9c364837
1 changed files with 3 additions and 1 deletions
|
@ -65,7 +65,9 @@ QHash<QString, QString> HTTPConnection::parseUrlEncodedForm() {
|
|||
QUrlQuery form { _requestContent };
|
||||
QHash<QString, QString> pairs;
|
||||
for (auto pair : form.queryItems()) {
|
||||
pairs[QUrl::fromPercentEncoding(pair.first.toLatin1())] = QUrl::fromPercentEncoding(pair.second.toLatin1());
|
||||
auto key = QUrl::fromPercentEncoding(pair.first.toLatin1().replace('+', ' '));
|
||||
auto value = QUrl::fromPercentEncoding(pair.second.toLatin1().replace('+', ' '));
|
||||
pairs[key] = value;
|
||||
}
|
||||
|
||||
return pairs;
|
||||
|
|
Loading…
Reference in a new issue