From 88e2eb2a490495f12d3d3586edb6fb2f5f626e70 Mon Sep 17 00:00:00 2001 From: "Sergio R. Caprile" Date: Tue, 24 Jan 2023 11:31:25 -0300 Subject: [PATCH 1/4] Revert "fix the doc error: htts to https" --- docs/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/README.md b/docs/README.md index 74de0ebc..726189a2 100644 --- a/docs/README.md +++ b/docs/README.md @@ -3821,7 +3821,7 @@ isn't default port for URL protocol Usage example: ```c -unsigned short port1 = mg_url_port("https://myhost.com") // port1 is now 443 (default https port) +unsigned short port1 = mg_url_port("htts://myhost.com") // port1 is now 443 (default https port) unsigned short port2 = mg_url_port("127.0.0.1:567") // port2 is now 567 ``` From 31393128c8d584d32da9fdadc1d4a9d4e7437250 Mon Sep 17 00:00:00 2001 From: "Sergio R. Caprile" Date: Tue, 24 Jan 2023 11:35:26 -0300 Subject: [PATCH 2/4] Revert "Fix typo in documentation" --- docs/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/README.md b/docs/README.md index 726189a2..cf9b062b 100644 --- a/docs/README.md +++ b/docs/README.md @@ -3961,7 +3961,7 @@ Parameters: - `0` - Disable logging - `1` - Log errors only - `2` - Log errors and info messages - - `3` - Log errors, info and debug messages + - `3` - Log errors, into and debug messages - `4` - Log everything Return value: None From 5aa6c15c76031c4d7ac0ca81ea48be73a1cc1b98 Mon Sep 17 00:00:00 2001 From: "Sergio R. Caprile" Date: Tue, 24 Jan 2023 11:41:51 -0300 Subject: [PATCH 3/4] Revert "Update comment for the path of rest API" --- examples/websocket-server/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/websocket-server/main.c b/examples/websocket-server/main.c index cacd2662..fe6f3680 100644 --- a/examples/websocket-server/main.c +++ b/examples/websocket-server/main.c @@ -10,7 +10,7 @@ static const char *s_web_root = "."; // This RESTful server implements the following endpoints: // /websocket - upgrade to Websocket, and implement websocket echo server -// /rest - respond with JSON string {"result": 123} +// /api/rest - respond with JSON string {"result": 123} // any other URI serves static files from s_web_root static void fn(struct mg_connection *c, int ev, void *ev_data, void *fn_data) { if (ev == MG_EV_OPEN) { From 4236405b90e051310aadda818e21c811e404b4d8 Mon Sep 17 00:00:00 2001 From: "Sergio R. Caprile" Date: Tue, 24 Jan 2023 13:30:45 -0300 Subject: [PATCH 4/4] Ready to release --- docs/README.md | 4 ++-- examples/websocket-server/main.c | 2 +- mongoose.h | 2 +- src/version.h | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/README.md b/docs/README.md index cf9b062b..74de0ebc 100644 --- a/docs/README.md +++ b/docs/README.md @@ -3821,7 +3821,7 @@ isn't default port for URL protocol Usage example: ```c -unsigned short port1 = mg_url_port("htts://myhost.com") // port1 is now 443 (default https port) +unsigned short port1 = mg_url_port("https://myhost.com") // port1 is now 443 (default https port) unsigned short port2 = mg_url_port("127.0.0.1:567") // port2 is now 567 ``` @@ -3961,7 +3961,7 @@ Parameters: - `0` - Disable logging - `1` - Log errors only - `2` - Log errors and info messages - - `3` - Log errors, into and debug messages + - `3` - Log errors, info and debug messages - `4` - Log everything Return value: None diff --git a/examples/websocket-server/main.c b/examples/websocket-server/main.c index fe6f3680..cacd2662 100644 --- a/examples/websocket-server/main.c +++ b/examples/websocket-server/main.c @@ -10,7 +10,7 @@ static const char *s_web_root = "."; // This RESTful server implements the following endpoints: // /websocket - upgrade to Websocket, and implement websocket echo server -// /api/rest - respond with JSON string {"result": 123} +// /rest - respond with JSON string {"result": 123} // any other URI serves static files from s_web_root static void fn(struct mg_connection *c, int ev, void *ev_data, void *fn_data) { if (ev == MG_EV_OPEN) { diff --git a/mongoose.h b/mongoose.h index 79e30e0e..8cd91508 100644 --- a/mongoose.h +++ b/mongoose.h @@ -20,7 +20,7 @@ #ifndef MONGOOSE_H #define MONGOOSE_H -#define MG_VERSION "7.8" +#define MG_VERSION "7.9" #ifdef __cplusplus extern "C" { diff --git a/src/version.h b/src/version.h index 3218440c..20b2adba 100644 --- a/src/version.h +++ b/src/version.h @@ -1 +1 @@ -#define MG_VERSION "7.8" +#define MG_VERSION "7.9"