1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-23 08:45:22 +03:00

Allow manually setting MD5 checksum for HTTP update (#8204)

This commit is contained in:
Vlasta Hajek
2021-09-04 19:34:00 +02:00
committed by GitHub
parent 058ce7c08e
commit d3f16b3177
2 changed files with 15 additions and 4 deletions

View File

@ -108,6 +108,11 @@ public:
_ledOn = ledOn;
}
void setMD5sum(const String &md5Sum)
{
_md5Sum = md5Sum;
}
void setAuthorization(const String& user, const String& password);
void setAuthorization(const String& auth);
@ -142,7 +147,7 @@ protected:
String _user;
String _password;
String _auth;
String _md5Sum;
private:
int _httpClientTimeout;
followRedirects_t _followRedirects = HTTPC_DISABLE_FOLLOW_REDIRECTS;