فهرست منبع

Add patch of pull request #196 to unit_test.c

The pull request can not be applied automatically, due to merge conflicts.
It is easier to change the few lines manually than to resolve all these conflicts.
bel 10 سال پیش
والد
کامیت
ac3968c850
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      test/unit_test.c

+ 2 - 2
test/unit_test.c

@@ -773,7 +773,7 @@ static void test_mg_websocket_client_connect(int use_ssl)
 	                                   NULL);
 	ASSERT(conn == NULL);
 
-	/* Should succeed, the default civetweb sever should complete the handshake
+	/* Should succeed, the default civetweb server should complete the handshake
 	 */
 	conn = mg_connect_websocket_client("localhost",
 	                                   port,
@@ -1147,7 +1147,7 @@ static int request_test_handler(struct mg_connection *conn, void *cbdata)
 	          "Content-Type: text/plain\r\n\r\n");
 
 	for (i = 0; i < 20; i++) {
-		mg_printf(conn, "%s\r\n", i);
+		mg_printf(conn, "%x\r\n", i);
 		mg_write(conn, chunk_data, i);
 		mg_printf(conn, "\r\n");
 	}