Browse Source

Autoformat source

bel 10 năm trước cách đây
mục cha
commit
8722b8153a
2 tập tin đã thay đổi với 9 bổ sung3 xóa
  1. 1 1
      src/civetweb.c
  2. 8 2
      test/public.c

+ 1 - 1
src/civetweb.c

@@ -7695,7 +7695,7 @@ static uint32_t get_remote_ip(const struct mg_connection *conn)
 
 int mg_upload(struct mg_connection *conn, const char *destination_dir)
 {
-    /* TODO (high): completely rewrite this function. See issue #180. */
+	/* TODO (high): completely rewrite this function. See issue #180. */
 	/* TODO (mid): set a timeout */
 	const char *content_type_header, *boundary_start, *sc;
 	char *s;

+ 8 - 2
test/public.c

@@ -546,7 +546,13 @@ START_TEST(test_request_handlers)
 
 
 	/* Try to load non existing file */
-	conn = mg_download("localhost", atoi(HTTP_PORT), 0, ebuf, sizeof(ebuf), "%s", "GET /U7 HTTP/1.0\r\n\r\n");
+	conn = mg_download("localhost",
+	                   atoi(HTTP_PORT),
+	                   0,
+	                   ebuf,
+	                   sizeof(ebuf),
+	                   "%s",
+	                   "GET /U7 HTTP/1.0\r\n\r\n");
 	ck_assert(conn != NULL);
 	ri = mg_get_request_info(conn);
 
@@ -555,7 +561,7 @@ START_TEST(test_request_handlers)
 	mg_close_connection(conn);
 
 
-    /* Get data from Callback */
+	/* Get data from Callback */
 	conn = mg_download(
 	    "localhost", atoi(HTTP_PORT), 0, ebuf, sizeof(ebuf), "%s", request);
 	ck_assert(conn != NULL);