aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2012-07-03 13:39:23 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2012-07-03 13:39:23 +0200
commitcfb517ce9dd7cd5bcd072eefe5bd9b32242226ed (patch)
treecc2699700fb0f9ac994cf5eb91f3626c94eec0c0
parentHundred meg max. (diff)
downloadJsonScgiQt-cfb517ce9dd7cd5bcd072eefe5bd9b32242226ed.tar.xz
JsonScgiQt-cfb517ce9dd7cd5bcd072eefe5bd9b32242226ed.zip
Only use C locale for cookies.HEADmaster
-rw-r--r--lib/JsonScgiPeer.cpp2
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()));
}