URIReader: Allow overriding user agent through public member variable, fix for readAll() deadlock
This commit is contained in:
parent
fff4e2b3d4
commit
b9c03ccb18
2 changed files with 8 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue