From aca05a2232dc4cd138abd8ce2204f5bc035798bb Mon Sep 17 00:00:00 2001 From: Nagy Attila Gabor Date: Fri, 3 Jun 2016 23:25:45 +0200 Subject: [PATCH] Better handling of initial connections --- ota/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ota/index.php b/ota/index.php index 9201ae2..bc5a856 100644 --- a/ota/index.php +++ b/ota/index.php @@ -8,7 +8,7 @@ file_put_contents('/tmp/esp_debug.txt', print_r($_SERVER, true)); if ( - empty($_SERVER['HTTP_X_ESP8266_VERSION']) || + !isset($_SERVER['HTTP_X_ESP8266_VERSION']) || empty($_SERVER['HTTP_X_ESP8266_MODE']) || empty($_GET['id']) )