diff --git a/Foundation/include/Poco/AbstractEvent.h b/Foundation/include/Poco/AbstractEvent.h index 88169fa43..886df0e66 100644 --- a/Foundation/include/Poco/AbstractEvent.h +++ b/Foundation/include/Poco/AbstractEvent.h @@ -54,7 +54,7 @@ class AbstractEvent /// only. /// /// BasicEvent works with a standard delegate. They allow one object to register - /// onr or more delegates with an event. In contrast, a PriorityDelegate comes with an attached priority value + /// one or more delegates with an event. In contrast, a PriorityDelegate comes with an attached priority value /// and allows one object to register for one priority value one or more delegates. Note that PriorityDelegates /// only work with PriorityEvents: /// diff --git a/MongoDB/src/Database.cpp b/MongoDB/src/Database.cpp index b9e1e13a7..be4b1518c 100644 --- a/MongoDB/src/Database.cpp +++ b/MongoDB/src/Database.cpp @@ -80,9 +80,6 @@ Poco::MongoDB::Document::Ptr Database::ensureIndex(Connection& connection, const insertRequest->documents().push_back(index); connection.sendRequest(*insertRequest); - insertRequest->documents().push_back(index); - connection.sendRequest(*insertRequest); - return getLastErrorDoc(connection); } diff --git a/Net/samples/WebSocketServer/src/WebSocketServer.cpp b/Net/samples/WebSocketServer/src/WebSocketServer.cpp index 4b8daf28b..440ab7d5d 100644 --- a/Net/samples/WebSocketServer/src/WebSocketServer.cpp +++ b/Net/samples/WebSocketServer/src/WebSocketServer.cpp @@ -163,7 +163,7 @@ public: app.logger().information(it->first + ": " + it->second); } - if(request.find("Upgrade") != request.end() && request["Upgrade"] == "websocket") + if(request.find("Upgrade") != request.end() && Poco::icompare(request["Upgrade"], "websocket") == 0) return new WebSocketRequestHandler; else return new PageRequestHandler;