diff --git a/HISTORY.rst b/HISTORY.rst index 5660956c..51dd797a 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -6,6 +6,11 @@ Release Notes PlatformIO Core 4 ----------------- +4.2.2 (2020-??-??) +~~~~~~~~~~~~~~~~~~ + +* Fixed an issue when quitting from PlatformIO IDE does not shutdown PIO Home server + 4.2.1 (2020-02-17) ~~~~~~~~~~~~~~~~~~ diff --git a/platformio/commands/home/web.py b/platformio/commands/home/web.py index 45b6c37d..32bf0692 100644 --- a/platformio/commands/home/web.py +++ b/platformio/commands/home/web.py @@ -18,7 +18,7 @@ from twisted.web import static # pylint: disable=import-error class WebRoot(static.File): def render_GET(self, request): - if request.args.get("__shutdown__", False): + if request.args.get(b"__shutdown__", False): reactor.stop() return "Server has been stopped"