mirror of
https://github.com/wled/WLED.git
synced 2025-07-05 18:06:33 +00:00
handleSet: Fix incorrect response generation
Don't generate a response if there's no HTTP request. Fixes #4269
This commit is contained in:
parent
86d7c24513
commit
a1b332fc78
@ -1191,7 +1191,7 @@ bool handleSet(AsyncWebServerRequest *request, const String& req, bool apply)
|
|||||||
|
|
||||||
// internal call, does not send XML response
|
// internal call, does not send XML response
|
||||||
pos = req.indexOf(F("IN"));
|
pos = req.indexOf(F("IN"));
|
||||||
if (pos < 1) {
|
if ((request != nullptr) && (pos < 1)) {
|
||||||
auto response = request->beginResponseStream("text/xml");
|
auto response = request->beginResponseStream("text/xml");
|
||||||
XML_response(*response);
|
XML_response(*response);
|
||||||
request->send(response);
|
request->send(response);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user