Fix assorted compiler warnings found by Clang

This commit is contained in:
James Turner
2011-10-28 12:07:35 +01:00
parent c6d5cbd52c
commit 95ddc04a73
8 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ void Request::responseStart(const string& r)
void Request::responseHeader(const string& key, const string& value)
{
if (key == "connection") {
_willClose = (value.find("close") >= 0);
_willClose = (value.find("close") != string::npos);
}
_responseHeaders[key] = value;