File tree 1 file changed +3
-5
lines changed 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -106,21 +106,19 @@ int rp2040_connect_onOTARequest(char const * ota_url)
106
106
return static_cast <int >(OTAError::RP2040_UrlParseError);
107
107
}
108
108
109
- const char * host = url.host_ .c_str ();
110
-
111
109
mbed_watchdog_reset ();
112
110
113
- int ret = client->connect (host , port);
111
+ int ret = client->connect (url. host_ . c_str () , port);
114
112
if (!ret)
115
113
{
116
- DEBUG_ERROR (" %s: Connection failure with OTA storage server %s" , __FUNCTION__, host );
114
+ DEBUG_ERROR (" %s: Connection failure with OTA storage server %s" , __FUNCTION__, url. host_ . c_str () );
117
115
return static_cast <int >(OTAError::RP2040_ServerConnectError);
118
116
}
119
117
120
118
mbed_watchdog_reset ();
121
119
122
120
client->println (String (" GET " ) + url.path_ .c_str () + " HTTP/1.1" );
123
- client->println (String (" Host: " ) + host );
121
+ client->println (String (" Host: " ) + url. host_ . c_str () );
124
122
client->println (" Connection: close" );
125
123
client->println ();
126
124
You can’t perform that action at this time.
0 commit comments