File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,7 @@ int Arduino_ESP32_OTA::startDownload(const char * ota_url)
102
102
Error err = Error::None;
103
103
int statusCode;
104
104
int res;
105
+ String req;
105
106
106
107
_context = new Context (ota_url, [this ](uint8_t data){
107
108
_context->writtenBytes ++;
@@ -126,7 +127,8 @@ int Arduino_ESP32_OTA::startDownload(const char * ota_url)
126
127
127
128
_http_client = new HttpClient (*_client, _context->parsed_url .host (), _context->parsed_url .port ());
128
129
129
- res= _http_client->get (_context->parsed_url .path ());
130
+ req = String (_context->parsed_url .path ()) + String (_context->parsed_url .query ());
131
+ res = _http_client->get (_context->parsed_url .path ());
130
132
131
133
if (res == HTTP_ERROR_CONNECTION_FAILED) {
132
134
DEBUG_VERBOSE (" OTA ERROR: http client error connecting to server \" %s:%d\" " ,
You can’t perform that action at this time.
0 commit comments