HTTPClientWrapper: Initialize buffer variables. D'Oh.

This commit is contained in:
Fabian Schlenz 2019-11-29 21:23:01 +01:00
parent 38d48ab0e4
commit a8d19cd6e1

View File

@ -72,6 +72,9 @@ bool HTTPClientWrapper::_request(String method, String url, uint32_t offset, uin
DEBUG("Unexpected HTTP return code %d. Cancelling.\n", status);
return false;
}
_buffer_position = 0;
_buffer_length = 0;
_connected = true;
_length = _http->getSize() + offset;