소스 검색

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 9 년 전
부모
커밋
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);
 	                                   NULL);
 	ASSERT(conn == 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",
 	conn = mg_connect_websocket_client("localhost",
 	                                   port,
 	                                   port,
@@ -1147,7 +1147,7 @@ static int request_test_handler(struct mg_connection *conn, void *cbdata)
 	          "Content-Type: text/plain\r\n\r\n");
 	          "Content-Type: text/plain\r\n\r\n");
 
 
 	for (i = 0; i < 20; i++) {
 	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_write(conn, chunk_data, i);
 		mg_printf(conn, "\r\n");
 		mg_printf(conn, "\r\n");
 	}
 	}