fix mg_send() failing on 0 length

This commit is contained in:
Sergio R. Caprile committed 2025-11-19 17:02:28 -03:00
1 parent b503915ca5
commit 236724ea29
5 files changed
+20 -8

No files matched your search

+1
View File
@@ -413,6 +413,7 @@ static void test_http_server(struct mg_mgr *mgr) {
mg_mprintf("./mip_curl.sh http://%M:12347", mg_print_ip4, &mgr->ifp->ip);
#endif
ASSERT(c != NULL);
ASSERT (mg_send(c, "NADA", 0)); // check mg_send allows len=0
pthread_create(&thread_id, NULL, poll_thread,
mgr); // simpler this way, no concurrency anyway
MG_DEBUG(("CURL"));