Browse Source

Format code

bel 8 years ago
parent
commit
26d3579fdc
2 changed files with 6 additions and 1 deletions
  1. 3 0
      include/civetweb.h
  2. 3 1
      src/civetweb.c

+ 3 - 0
include/civetweb.h

@@ -695,6 +695,7 @@ CIVETWEB_API int mg_send_chunk(struct mg_connection *conn,
 /* Send contents of the entire file together with HTTP headers. */
 CIVETWEB_API void mg_send_file(struct mg_connection *conn, const char *path);
 
+
 /* Send contents of the entire file together with HTTP headers.
    Parameters:
      conn: Current connection information.
@@ -706,6 +707,7 @@ CIVETWEB_API void mg_send_mime_file(struct mg_connection *conn,
                                     const char *path,
                                     const char *mime_type);
 
+
 /* Send contents of the entire file together with HTTP headers.
    Parameters:
      conn: Current connection information.
@@ -722,6 +724,7 @@ CIVETWEB_API void mg_send_mime_file2(struct mg_connection *conn,
                                      const char *mime_type,
                                      const char *additional_headers);
 
+
 /* Store body data into a file. */
 CIVETWEB_API long long mg_store_body(struct mg_connection *conn,
                                      const char *path);

+ 3 - 1
src/civetweb.c

@@ -2917,7 +2917,9 @@ mg_get_request_link(const struct mg_connection *conn, char *buf, size_t buflen)
 
 			char portstr[16];
 			char server_ip[48];
-            const char * proto = (is_websocket_protocol(conn) ? (ri->is_ssl ? "wss" : "ws") : (ri->is_ssl ? "https" : "http"));
+			const char *proto =
+			    (is_websocket_protocol(conn) ? (ri->is_ssl ? "wss" : "ws")
+			                                 : (ri->is_ssl ? "https" : "http"));
 
 			if (port != def_port) {
 				sprintf(portstr, ":%u", (unsigned)port);