mirror of
https://git.tesses.org/tesses50/tessesframework.git
synced 2026-06-01 18:15:31 +00:00
Make threading and networking optional
This commit is contained in:
@@ -923,15 +923,17 @@ namespace Tesses::Framework::Http
|
||||
std::string connection;
|
||||
if(ctx.requestHeaders.TryGetFirst("Connection", connection))
|
||||
{
|
||||
if(connection != "keep-alive") return;
|
||||
if(HttpUtils::ToLower(connection) != "keep-alive") return;
|
||||
}
|
||||
|
||||
if(ctx.responseHeaders.TryGetFirst("Connection", connection))
|
||||
{
|
||||
if(connection != "keep-alive") return;
|
||||
if(HttpUtils::ToLower(connection) != "keep-alive") return;
|
||||
}
|
||||
|
||||
if(bStrm.EndOfStream()) return;
|
||||
if(bStrm.EndOfStream()) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user