mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-02 13:20:51 +00:00
fix mg_send() failing on 0 length
This commit is contained in:
1 parent
b503915ca5
commit
236724ea29
5 files changed
+20
-8
No files matched your search
@@ -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"));
|
||||
|
||||
Reference in new issue
Block a user