diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-01-20 18:21:47 +0100 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-01-20 18:21:47 +0100 |
commit | 16375f6aad355333d1d3aff6140cdb4439a9b62f (patch) | |
tree | eb4192092b928e90aebaf914288d12c9cafaf5a5 /src/HTTPServer/HTTPMessage.cpp | |
parent | Added Inifile and OSSupport Linking (diff) | |
parent | APIDump: Added notes about objects across cWorld's task execution. (diff) | |
download | cuberite-16375f6aad355333d1d3aff6140cdb4439a9b62f.tar cuberite-16375f6aad355333d1d3aff6140cdb4439a9b62f.tar.gz cuberite-16375f6aad355333d1d3aff6140cdb4439a9b62f.tar.bz2 cuberite-16375f6aad355333d1d3aff6140cdb4439a9b62f.tar.lz cuberite-16375f6aad355333d1d3aff6140cdb4439a9b62f.tar.xz cuberite-16375f6aad355333d1d3aff6140cdb4439a9b62f.tar.zst cuberite-16375f6aad355333d1d3aff6140cdb4439a9b62f.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); } |