Commit b60e45ca authored by Volker Krause's avatar Volker Krause
Browse files

Don't send a ServerInfo request with each Hafas query

This is a leftover from initial experiments with recreating Hafas queries
issued by apps, but isn't actually needed.
parent 5e408755
......@@ -331,23 +331,11 @@ QNetworkRequest HafasMgateBackend::makePostRequest(const QJsonObject &svcReq, QB
}
top.insert(QStringLiteral("formatted"), false);
top.insert(QStringLiteral("lang"), preferredLanguage());
{
QJsonArray svcReqs;
{
QJsonObject req;
req.insert(QStringLiteral("getServerDateTime"), true);
req.insert(QStringLiteral("getTimeTablePeriod"), false);
QJsonObject serverInfo;
serverInfo.insert(QStringLiteral("meth"), QLatin1String("ServerInfo"));
serverInfo.insert(QStringLiteral("req"), req);
top.insert(QStringLiteral("ver"), m_version);
svcReqs.push_back(serverInfo);
}
QJsonArray svcReqs;
svcReqs.push_back(svcReq);
top.insert(QStringLiteral("svcReqL"), svcReqs);
}
top.insert(QStringLiteral("ver"), m_version);
postData = QJsonDocument(top).toJson(QJsonDocument::Compact);
QUrl url(m_endpoint);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment