Explorar el Código

Fixed bug in handler returns code reported by agold1234

sunsetbrew hace 11 años
padre
commit
266562065a
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/CivetServer.cpp

+ 2 - 2
src/CivetServer.cpp

@@ -53,9 +53,9 @@ int CivetServer::requestHandler(struct mg_connection *conn, void *cbdata)
         } else if (strcmp(request_info->request_method, "POST") == 0) {
             return handler->handlePost(me, conn) ? 1 : 0;
         } else if (strcmp(request_info->request_method, "PUT") == 0) {
-            return !handler->handlePut(me, conn) ? 1 : 0;
+            return handler->handlePut(me, conn) ? 1 : 0;
         } else if (strcmp(request_info->request_method, "DELETE") == 0) {
-            return !handler->handleDelete(me, conn) ? 1 : 0;
+            return handler->handleDelete(me, conn) ? 1 : 0;
         }
     }