handleHttpApi: Remove 'IN' tag

Internal requests are indicated by passing nullptr for the request
argument.  If we *are* in fact called from an HTTP request, we must
generate some kind of reply anyways, so this parameter is obsolete.
This commit is contained in:
Will Miles 2024-11-10 18:34:20 -05:00
parent 4d0b79f300
commit e65f6c7bc7

View File

@ -1188,8 +1188,7 @@ bool handleHttpApi(AsyncWebServerRequest *request, const String& req, bool apply
stateUpdated((pos >= 0) ? CALL_MODE_NO_NOTIFY : CALL_MODE_DIRECT_CHANGE);
// internal call, does not send XML response
pos = req.indexOf(F("IN"));
if ((request != nullptr) && (pos >= 0)) {
if (request != nullptr) {
auto response = request->beginResponseStream("text/xml");
XML_response(*response);
request->send(response);