mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 16:41:02 +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 };
|
QUrlQuery form { _requestContent };
|
||||||
QHash<QString, QString> pairs;
|
QHash<QString, QString> pairs;
|
||||||
for (auto pair : form.queryItems()) {
|
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;
|
return pairs;
|
||||||
|
|
Loading…
Reference in a new issue