diff mbox series

[1/1] webserver: pass user_data to the uploadhandler in the case of an error

Message ID 20190516110511.10018-2-andrej.krpic@gmail.com
State Accepted
Headers show
Series [1/1] webserver: pass user_data to the uploadhandler in the case of an error | expand

Commit Message

andrej.krpic@gmail.com May 16, 2019, 11:05 a.m. UTC
From: Andrej Krpič <andrej.krpic@smart-com.si>

Signed-off-by: Andrej Krpič <andrej.krpic@smart-com.si>
---
 mongoose/mongoose.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/mongoose/mongoose.c b/mongoose/mongoose.c
index 11c2837..d238934 100644
--- a/mongoose/mongoose.c
+++ b/mongoose/mongoose.c
@@ -6109,6 +6109,7 @@  static 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),