mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
Merge pull request #1574 from rherget/small_doc_fix
fix demo OTA php script
This commit is contained in:
commit
b5684b4641
@ -507,7 +507,7 @@ $db = array(
|
|||||||
);
|
);
|
||||||
|
|
||||||
if(isset($db[$_SERVER['HTTP_X_ESP8266_STA_MAC']])) {
|
if(isset($db[$_SERVER['HTTP_X_ESP8266_STA_MAC']])) {
|
||||||
if($db[$_SERVER['HTTP_X_ESP8266_STA_MAC']] != $_SERVER['HTTP_X_ESP8266_VERSION']) ) {
|
if($db[$_SERVER['HTTP_X_ESP8266_STA_MAC']] != $_SERVER['HTTP_X_ESP8266_VERSION']) {
|
||||||
sendFile("./bin/".$db[$_SERVER['HTTP_X_ESP8266_STA_MAC']]."bin");
|
sendFile("./bin/".$db[$_SERVER['HTTP_X_ESP8266_STA_MAC']]."bin");
|
||||||
} else {
|
} else {
|
||||||
header($_SERVER["SERVER_PROTOCOL"].' 304 Not Modified', true, 304);
|
header($_SERVER["SERVER_PROTOCOL"].' 304 Not Modified', true, 304);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user