Save 384 heap bytes by handling the web request buffering in the loop() stack context.
Instead of ESP8266WebServer, which is something of a RAM hog and has extensive use of Strings and allocations, use a simpler one with no dynamic memory allocations at all, borrowed from PsychoPlug https://github.com/earlephilhower/psychoplug.