From b6196371bb62c2a8f3e7d45fcacf0bf73befa2d2 Mon Sep 17 00:00:00 2001 From: Sergey Lyubka Date: Wed, 26 Jun 2019 11:17:39 +0100 Subject: [PATCH] Lsm PUBLISHED_FROM=18d9d1e6411db84788c527d1c34ad2adc846df00 --- mongoose.c | 1 + src/mg_http.c | 1 + 2 files changed, 2 insertions(+) diff --git a/mongoose.c b/mongoose.c index 9571d574..22da9a51 100644 --- a/mongoose.c +++ b/mongoose.c @@ -6590,6 +6590,7 @@ void mg_http_handler(struct mg_connection *nc, int ev, struct mg_http_multipart_part mp; memset(&mp, 0, sizeof(mp)); mp.status = -1; + mp.user_data = pd->mp_stream.user_data; mp.var_name = pd->mp_stream.var_name; mp.file_name = pd->mp_stream.file_name; mg_call(nc, (pd->endpoint_handler ? pd->endpoint_handler : nc->handler), diff --git a/src/mg_http.c b/src/mg_http.c index ef546c37..9e9d761c 100644 --- a/src/mg_http.c +++ b/src/mg_http.c @@ -756,6 +756,7 @@ void mg_http_handler(struct mg_connection *nc, int ev, struct mg_http_multipart_part mp; memset(&mp, 0, sizeof(mp)); mp.status = -1; + mp.user_data = pd->mp_stream.user_data; mp.var_name = pd->mp_stream.var_name; mp.file_name = pd->mp_stream.file_name; mg_call(nc, (pd->endpoint_handler ? pd->endpoint_handler : nc->handler),