mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-01-27 09:09:25 +03:00
fixes #1656
This commit is contained in:
@@ -855,12 +855,6 @@ AsyncWebServerResponse * AsyncWebServerRequest::beginResponse_P(int code, const
|
||||
return beginResponse_P(code, contentType, (const uint8_t *)content, strlen_P(content), callback);
|
||||
}
|
||||
|
||||
// added by proddy
|
||||
AsyncWebServerResponse *
|
||||
AsyncWebServerRequest::beginResponse(const String & contentType, const uint8_t * content, size_t len) {
|
||||
return new AsyncResponse(contentType, content, len);
|
||||
}
|
||||
|
||||
void AsyncWebServerRequest::send(int code, const String & contentType, const String & content) {
|
||||
send(beginResponse(code, contentType, content));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user