aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2012-06-14 02:30:41 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2012-06-14 02:30:41 +0200
commit9bb9bae856ede336fe70bfde33ae5e38a62b3a6c (patch)
tree0f84b56840db550f2fd1d2fb7ff4986ea644b2b8
parentDelete unpopulated sessions too. (diff)
downloadJsonScgiQt-9bb9bae856ede336fe70bfde33ae5e38a62b3a6c.tar.xz
JsonScgiQt-9bb9bae856ede336fe70bfde33ae5e38a62b3a6c.zip
Add new line.
-rw-r--r--lib/JsonScgiPeer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/JsonScgiPeer.cpp b/lib/JsonScgiPeer.cpp
index 26508c6..a01cc54 100644
--- a/lib/JsonScgiPeer.cpp
+++ b/lib/JsonScgiPeer.cpp
@@ -40,7 +40,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() +
- " GMT; HttpOnly" + (m_https ? "; secure" : "") + "\r\n\r\n" + Json::serialize(response);
+ " GMT; HttpOnly" + (m_https ? "; secure" : "") + "\r\n\r\n" + Json::serialize(response) + "\n";
QTimer::singleShot(0, this, SLOT(readyWrite()));
}
@@ -51,7 +51,7 @@ void JsonScgiPeer::die()
void JsonScgiPeer::notFound()
{
- m_outputBuffer = "Status 404 Not Found\r\nContent-Type: text/plain\r\n\r\nThese aren't the droids you're looking for.";
+ m_outputBuffer = "Status 404 Not Found\r\nContent-Type: text/plain\r\n\r\nThese aren't the droids you're looking for.\n";
QTimer::singleShot(0, this, SLOT(readyWrite()));
}