kopia lustrzana https://github.com/Aircoookie/WLED
Merge pull request #4271 from Aircoookie/4269-crashes-when-using-http-api-within-mqtt
Fix for #4269pull/4290/head
commit
ba01cb82f7
|
@ -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);
|
||||||
|
|
Ładowanie…
Reference in New Issue