@@ -190,13 +190,14 @@ void esp32FOTA::setConfig( FOTAConfig_t cfg )
190
190
_cfg.pub_key = cfg.pub_key ;
191
191
_cfg.signature_len = cfg.signature_len ;
192
192
_cfg.allow_reuse = cfg.allow_reuse ;
193
+ _cfg.use_http10 = cfg.use_http10 ;
193
194
}
194
195
195
196
196
197
void esp32FOTA::printConfig ( FOTAConfig_t *cfg )
197
198
{
198
199
if ( cfg == nullptr ) cfg = &_cfg;
199
- log_d (" Name: %s\n Manifest URL:%s\n Semantic Version: %d.%d.%d\n Check Sig: %s\n Unsafe: %s\n Use Device ID: %s\n RootCA: %s\n PubKey: %s\n SignatureLen: %d\n " ,
200
+ log_d (" Name: %s\n Manifest URL:%s\n Semantic Version: %d.%d.%d\n Check Sig: %s\n Unsafe: %s\n Use Device ID: %s\n RootCA: %s\n PubKey: %s\n SignatureLen: %d\n HTTP Keep-Alive:%s \n HTTP 1.0:%s \ n" ,
200
201
cfg->name ? cfg->name : " None" ,
201
202
cfg->manifest_url ? cfg->manifest_url : " None" ,
202
203
cfg->sem .ver ()->major ,
@@ -208,7 +209,8 @@ void esp32FOTA::printConfig( FOTAConfig_t *cfg )
208
209
cfg->root_ca ?" true" :" false" ,
209
210
cfg->pub_key ?" true" :" false" ,
210
211
cfg->signature_len ,
211
- cfg->allow_reuse
212
+ cfg->allow_reuse ? " true" :" false" ,
213
+ cfg->use_http10 ? " true" :" false"
212
214
);
213
215
}
214
216
@@ -367,7 +369,9 @@ bool esp32FOTA::setupHTTP( const char* url )
367
369
const char * rootcastr = nullptr ;
368
370
_http.setFollowRedirects (HTTPC_STRICT_FOLLOW_REDIRECTS);
369
371
_http.setReuse (_cfg.allow_reuse );
372
+ _http.useHTTP10 (_cfg.use_http10 );
370
373
374
+
371
375
log_i (" Connecting to: %s" , url );
372
376
if ( String (url).startsWith (" https" ) ) {
373
377
if (!_cfg.unsafe ) {
0 commit comments