mirror of
https://github.com/wled/WLED.git
synced 2025-07-19 00:36:36 +00:00
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:
parent
4d0b79f300
commit
e65f6c7bc7
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user