1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-13 13:01:55 +03:00

update ESP8266HTTPUpdate to use httpClient class

add support for MD5 check
This commit is contained in:
Markus Sattler
2015-11-27 13:48:13 +01:00
parent ce5720d161
commit 9f0fdd573f
3 changed files with 110 additions and 82 deletions

View File

@ -340,6 +340,7 @@ function sendFile($path) {
header('Content-Type: application/octet-stream', true);
header('Content-Disposition: attachment; filename='.basename($path));
header('Content-Length: '.filesize($path), true);
header('x-MD5: '.md5_file($path), true);
readfile($path);
}