ソースを参照

Unit test: a redirect may have a body (optional)

bel2125 7 年 前
コミット
93f69d5afb
1 ファイル変更6 行追加0 行削除
  1. 6 0
      unittest/public_server.c

+ 6 - 0
unittest/public_server.c

@@ -1387,8 +1387,11 @@ START_TEST(test_request_handlers)
 	          || (client_ri->status_code == 303)
 	          || (client_ri->status_code == 307)
 	          || (client_ri->status_code == 308)); /* is a redirect code */
+	/*
+	// A redirect may have a body, or not
 	i = mg_read(client_conn, buf, sizeof(buf));
 	ck_assert_int_eq(i, -1);
+	*/
 	mg_close_connection(client_conn);
 #endif
 
@@ -1418,8 +1421,11 @@ START_TEST(test_request_handlers)
 	          || (client_ri->status_code == 303)
 	          || (client_ri->status_code == 307)
 	          || (client_ri->status_code == 308)); /* is a redirect code */
+	/*
+	// A redirect may have a body, or not
 	i = mg_read(client_conn, buf, sizeof(buf));
 	ck_assert_int_eq(i, -1);
+	*/
 	mg_close_connection(client_conn);
 #endif