fix tests

This commit is contained in:
Sergio R. Caprile committed 2025-07-07 11:32:31 -03:00
1 parent b95022a3b3
commit a8c2ce544e
12 files changed
+107 -2183

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
CFLAGS = -W -Wall -Wextra -g -I. # Build options
CFLAGS = -g -I. # This is a known version, no need to check
CFLAGS_MONGOOSE += -DMG_ENABLE_LINES=1 -DMG_ENABLE_IPV6=1
CFLAGS_EXTRA ?= -DMG_TLS=MG_TLS_BUILTIN
+1 -1
View File
@@ -63,7 +63,7 @@ static void cb(struct mg_connection *c, int ev, void *ev_data) {
mg_tls_init(c, &opts);
}
if (ev == MG_EV_HTTP_MSG) {
struct mg_http_message *hm = ev_data;
struct mg_http_message *hm = (struct mg_http_message *) ev_data;
if (mg_match(hm->uri, mg_str("/upload"), NULL)) {
// Serve file upload