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:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user