diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2012-07-03 13:39:23 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2012-07-03 13:39:23 +0200 |
commit | cfb517ce9dd7cd5bcd072eefe5bd9b32242226ed (patch) | |
tree | cc2699700fb0f9ac994cf5eb91f3626c94eec0c0 | |
parent | Hundred meg max. (diff) | |
download | JsonScgiQt-cfb517ce9dd7cd5bcd072eefe5bd9b32242226ed.tar.xz JsonScgiQt-cfb517ce9dd7cd5bcd072eefe5bd9b32242226ed.zip |
-rw-r--r-- | lib/JsonScgiPeer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/JsonScgiPeer.cpp b/lib/JsonScgiPeer.cpp index 08223e3..093e380 100644 --- a/lib/JsonScgiPeer.cpp +++ b/lib/JsonScgiPeer.cpp @@ -39,7 +39,7 @@ void JsonScgiPeer::sendResponse(const QVariantMap &response) { m_outputBuffer = "Status: 200 OK\r\nContent-Type: application/json\r\n" "Set-Cookie: JSONSCGIQTSESSION=" + m_sessionCookie.toAscii() + "; path=/; expires=" + - m_server->cookieExpiration(m_sessionCookie).toString("ddd, dd MMM yyyy hh:mm:ss").toAscii() + + QLocale("C").toString(m_server->cookieExpiration(m_sessionCookie), "ddd, dd MMM yyyy hh:mm:ss").toAscii() + " GMT; HttpOnly" + (m_https ? "; secure" : "") + "\r\n\r\n" + Json::serialize(response) + "\n"; QTimer::singleShot(0, this, SLOT(readyWrite())); } |