Closed allthepies closed 6 years ago
will do.
I see you've changed a different line :)
Same principle applies I guess.
My report was about the response to the /button.php GET
Line 537 request->send(200);
done. Sorry about that.
No more Firefox errors, thanks.
https://github.com/vitotai/BrewManiacEsp8266/blob/50f790a6c3d7ea5c382f8b1879329ebfbc2ed994/src/BrewManiacEx.cpp#L537
Returning no body causes a client side JS error in Firefox (new version) as it doesn't like empty responses.
No error reported in Chrome. The error doesn't stop the panel buttons (in this case) from working but no errors are good right! :+1:
Returning an empty JSON structure fixes the problem. request->send(200, "text/json", "{}")