URIReader: Allow overriding user agent through public member variable, fix for readAll() deadlock

This commit is contained in:
Thulinma 2020-10-27 17:21:05 +01:00
parent fff4e2b3d4
commit b9c03ccb18
2 changed files with 8 additions and 2 deletions

View file

@ -62,6 +62,8 @@ namespace HTTP{
void (*httpBodyCallback)(const char *ptr, size_t size);
void dataCallback(const char *ptr, size_t size);
std::string userAgentOverride;
private:
// Internal state variables
bool (*cbProgress)(uint8_t); ///< The progress callback, if any. Not called if set to a null pointer.