|
@@ -1082,17 +1082,17 @@ START_TEST(test_request_handlers)
|
|
|
|
|
|
(void)expected_cgi_result;
|
|
|
(void)cgi_script_content;
|
|
|
-#else
|
|
|
+#else
|
|
|
i = mg_read(client_conn, buf, sizeof(buf));
|
|
|
if ((i >= 0) && (i < (int)sizeof(buf))) {
|
|
|
while ((i > 0) && ((buf[i - 1] == '\r') || (buf[i - 1] == '\n'))) {
|
|
|
i--;
|
|
|
}
|
|
|
buf[i] = 0;
|
|
|
- }
|
|
|
- /* ck_assert_int_eq(i, (int)strlen(expected_cgi_result)); */
|
|
|
- ck_assert_str_eq(buf, expected_cgi_result);
|
|
|
- ck_assert_str_eq(ri->uri, "200");
|
|
|
+ }
|
|
|
+ /* ck_assert_int_eq(i, (int)strlen(expected_cgi_result)); */
|
|
|
+ ck_assert_str_eq(buf, expected_cgi_result);
|
|
|
+ ck_assert_str_eq(ri->uri, "200");
|
|
|
mg_close_connection(client_conn);
|
|
|
#endif
|
|
|
|