I'd like to reboot the system after sending HTTP response to the user agent. For that I set following flags in my HTTP endpoint registered with
c->flags |= MG_F_SEND_AND_CLOSE | MG_F_USER_5;
Unfortunately the device is rebooted before a response is sent. If I remove
MG_F_USER_5 then I see the response. Is it a mgos bug or I am doing something wrong?
Thanks in advance