cookie parsing fixed
This commit is contained in:
@@ -38,8 +38,8 @@ void SocketRunnable::get()
|
||||
if (urlPath() == "/index.html")
|
||||
{
|
||||
const QString cookieString = g::getValue(m_headers, "Cookie", g::GetValueType::HttpHeader);
|
||||
quint64 lastTrafficVolume = g::getValue(m_headers, LAST_TRAFFIC_VOLUME_COOKIE).toULongLong();
|
||||
qDebug() << "Cookie trafficvolume: raw " << cookieString << "; parsed" << lastTrafficVolume;
|
||||
quint64 lastTrafficVolume = g::getValue(cookieString, LAST_TRAFFIC_VOLUME_COOKIE).toULongLong();
|
||||
qDebug() << "Cookie trafficvolume: raw" << cookieString << "; parsed" << lastTrafficVolume;
|
||||
quint64 currentTrafficVolume = 0;
|
||||
httpDocument().setBody( WebPage::document(lastTrafficVolume, ¤tTrafficVolume) );
|
||||
httpDocument().setHeader(HttpDocument::CommonHeader::SetCookie,
|
||||
|
||||
Reference in New Issue
Block a user