I've face a small bug which I fixed right away, but it lead be questioning myself about if the bug exists in ESP8266WebServer::sendContent_P(), it is probably there too.
The issue is that is PGM_P buffer is smaller then packet size, the first packet should not be sized to HTTP_DOWNLOAD_UNIT_SIZE !

In my new WiFiClient::write_P function, it is not an issue since it received a size_t argument, I've added a if < statement...
But in ESP8266WebServer::sendContent_P(), it's rely on NULL terminated string, but doing an strlen() on PROGMEM in this case can me costly in this case ...

Any thought on this ? should we add a size_t to ESP8266WebServer::sendContent_P() ?