diff options
author | madmaxoft <github@xoft.cz> | 2014-01-18 20:20:56 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-01-18 20:20:56 +0100 |
commit | fab726282c5d2e04cdc9daa88b5d0a05ead8cf33 (patch) | |
tree | 17d996a93bdc3bf1adb0eb58f48fbaa9514da3ad /src/HTTPServer/HTTPMessage.cpp | |
parent | Alpha-sorted the finishers. (diff) | |
download | cuberite-fab726282c5d2e04cdc9daa88b5d0a05ead8cf33.tar cuberite-fab726282c5d2e04cdc9daa88b5d0a05ead8cf33.tar.gz cuberite-fab726282c5d2e04cdc9daa88b5d0a05ead8cf33.tar.bz2 cuberite-fab726282c5d2e04cdc9daa88b5d0a05ead8cf33.tar.lz cuberite-fab726282c5d2e04cdc9daa88b5d0a05ead8cf33.tar.xz cuberite-fab726282c5d2e04cdc9daa88b5d0a05ead8cf33.tar.zst cuberite-fab726282c5d2e04cdc9daa88b5d0a05ead8cf33.zip |
Diffstat (limited to 'src/HTTPServer/HTTPMessage.cpp')
-rw-r--r-- | src/HTTPServer/HTTPMessage.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/HTTPServer/HTTPMessage.cpp b/src/HTTPServer/HTTPMessage.cpp index ab23866e6..98627eb8e 100644 --- a/src/HTTPServer/HTTPMessage.cpp +++ b/src/HTTPServer/HTTPMessage.cpp @@ -72,7 +72,8 @@ cHTTPRequest::cHTTPRequest(void) : m_EnvelopeParser(*this), m_IsValid(true), m_UserData(NULL), - m_HasAuth(false) + m_HasAuth(false), + m_AllowKeepAlive(false) { } @@ -236,6 +237,10 @@ void cHTTPRequest::OnHeaderLine(const AString & a_Key, const AString & a_Value) m_HasAuth = true; } } + if ((a_Key == "Connection") && (NoCaseCompare(a_Value, "keep-alive") == 0)) + { + m_AllowKeepAlive = true; + } AddHeader(a_Key, a_Value); } |