From a3b2ead6f2e8e1a09569b0b2ac7ff2e3613fad25 Mon Sep 17 00:00:00 2001 From: Kurt Pattyn Date: Thu, 15 Aug 2013 14:41:48 +0200 Subject: [PATCH] Added TODO line indicating removal of fixed values --- source/handshakeresponse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/handshakeresponse.cpp b/source/handshakeresponse.cpp index 365f1c6..245437d 100644 --- a/source/handshakeresponse.cpp +++ b/source/handshakeresponse.cpp @@ -90,13 +90,13 @@ QString HandshakeResponse::getHandshakeResponse(const HandshakeRequest &request, { origin = "*"; } + //TODO: header values should be configurable; i.e. Server, Allow-Credentials, Allow-Headers response << "Server: Imagine Delivery Server" << "Access-Control-Allow-Credentials: true" << "Access-Control-Allow-Headers: content-type" << "Access-Control-Allow-Origin: " + origin << "Date: " + QDateTime::currentDateTimeUtc().toString("ddd, dd MMM yyyy hh:mm:ss 'GMT'"); - m_acceptedVersion = WebSocketProtocol::V_13; m_acceptedVersion = WebSocketProtocol::getCurrentVersion(); m_canUpgrade = true; } -- 2.7.4