1
0
mirror of https://github.com/lammertb/libhttp.git synced 2026-01-03 16:02:30 +03:00

moved status_code, user_data, log_message out of struct mg_request_info

This commit is contained in:
Sergey Lyubka
2012-09-17 19:38:19 +01:00
parent 4408083b4d
commit 05b2a04267
5 changed files with 52 additions and 40 deletions

2
main.c
View File

@@ -219,7 +219,7 @@ static void init_server_name(void) {
static void *mongoose_callback(enum mg_event ev, struct mg_connection *conn) {
if (ev == MG_EVENT_LOG) {
printf("%s\n", mg_get_request_info(conn)->log_message);
printf("%s\n", mg_get_log_message(conn));
}
return NULL;