Apparently Mongoose API changes all the time

This commit is contained in:
Casey 2024-04-25 14:46:26 +03:00
parent 8870b9e728
commit 7619aa67be
Signed by: hkc
GPG Key ID: F0F6CFE11CDB0960
1 changed files with 1 additions and 1 deletions

2
main.c
View File

@ -170,7 +170,7 @@ void api_handler(struct mg_connection *c, int ev, void *evd, void *fnd) {
struct mg_http_message *hm = evd;
memset(url, 0, 256); memcpy(url, hm->uri.ptr, hm->uri.len);
memset(method, 0, 32); memcpy(method, hm->method.ptr, hm->method.len);
mg_straddr(c, addr, 255);
mg_straddr(&c->rem, addr, 255);
printf("%-16s %-8s %s\n", addr, method, url);