vinipsmaker / tufao

An asynchronous web framework for C++ built on top of Qt
http://vinipsmaker.github.io/tufao/
GNU Lesser General Public License v2.1
589 stars 179 forks source link

Only the first cookie is considered #81

Closed dasloop closed 8 years ago

dasloop commented 8 years ago

A browser has more than one cookie but only the first is considered in: QByteArray SessionStore::session(const HttpServerRequest &request) const

Because QNetworkCookie::parseCookies looks for cookies separated by a new line character but they are not.

Printing headers[i].constData() shows several cookies separated by spaces.

Thanks in advance

vinipsmaker commented 8 years ago

Issue confirmed. Thanks for the report. Gonna fix it in the next minutes.