]> git.mxchange.org Git - simgear.git/blobdiff - simgear/io/HTTPRequest.cxx
scenery: Use correct property root in xml loading.
[simgear.git] / simgear / io / HTTPRequest.cxx
index 4b7a11bf607fb31c5f776ac0119a22372a6aff18..38651a3e9062090c9f22e2f90c2558e5a6099e83 100644 (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;