|
@@ -3,8 +3,9 @@
|
|
#include "mongoose.h"
|
|
#include "mongoose.h"
|
|
|
|
|
|
static void *callback(enum mg_event event,
|
|
static void *callback(enum mg_event event,
|
|
- struct mg_connection *conn,
|
|
|
|
- const struct mg_request_info *request_info) {
|
|
|
|
|
|
+ struct mg_connection *conn) {
|
|
|
|
+ const struct mg_request_info *request_info = mg_get_request_info(conn);
|
|
|
|
+
|
|
if (event == MG_NEW_REQUEST) {
|
|
if (event == MG_NEW_REQUEST) {
|
|
char content[1024];
|
|
char content[1024];
|
|
int content_length = snprintf(content, sizeof(content),
|
|
int content_length = snprintf(content, sizeof(content),
|