bel 9 лет назад
Родитель
Сommit
b3064181ae
2 измененных файлов с 15 добавлено и 14 удалено
  1. 8 8
      include/CivetServer.h
  2. 7 6
      src/CivetServer.cpp

+ 8 - 8
include/CivetServer.h

@@ -243,14 +243,14 @@ class CIVETWEB_API CivetServer
 	 */
 	void removeHandler(const std::string &uri);
 
-    /**
-     * removeWebSocketHandler(const std::string &)
-     *
-     * Removes a web socket handler.
-     *
-     * @param uri - the exact URL used in addWebSocketHandler().
-     */
-    void removeWebSocketHandler(const std::string &uri);
+	/**
+	 * removeWebSocketHandler(const std::string &)
+	 *
+	 * Removes a web socket handler.
+	 *
+	 * @param uri - the exact URL used in addWebSocketHandler().
+	 */
+	void removeWebSocketHandler(const std::string &uri);
 
 	/**
 	 * getListeningPorts()

+ 7 - 6
src/CivetServer.cpp

@@ -285,12 +285,13 @@ void
 CivetServer::removeHandler(const std::string &uri)
 {
 	mg_set_request_handler(context, uri.c_str(), NULL, NULL);
-}
-
-void
-CivetServer::removeWebSocketHandler(const std::string &uri)
-{
-    mg_set_websocket_handler(context, uri.c_str(), NULL, NULL, NULL, NULL, NULL);
+}
+
+void
+CivetServer::removeWebSocketHandler(const std::string &uri)
+{
+	mg_set_websocket_handler(
+	    context, uri.c_str(), NULL, NULL, NULL, NULL, NULL);
 }
 
 void