Re: ESP8266WebServer to send larger amounts of data
Posted: Wed Sep 09, 2015 9:12 am
I see in GitHub that IGRR had a concern with the proposed changes. I do not know C++, so this may not be correct, but is this how to address the concern?
void ESP8266WebServer::send_P(int code, PGM_P content_type, PGM_P content, size_t contentLength) {
String header;
String Content = String(FPSTR(content_type));
_prepareHeader(header, code, Content.c_str(), contentLength);
sendContent(header);
sendContent_P(content, contentLength);
}
Thank You,
GregryCM
void ESP8266WebServer::send_P(int code, PGM_P content_type, PGM_P content, size_t contentLength) {
String header;
String Content = String(FPSTR(content_type));
_prepareHeader(header, code, Content.c_str(), contentLength);
sendContent(header);
sendContent_P(content, contentLength);
}
Thank You,
GregryCM