I gave this a try (code exactly as is, just changed wifi and host url) on an ESP32-WROOM32.
After successfully downloading the new application and rebooting, the same download code is running again. Not the new application. I must be missing something here..
any ideas?