Small improvement to http client (#1558)
This commit is contained in:
parent
ebb537c502
commit
2227383843
|
@ -412,13 +412,6 @@ static void ICACHE_FLASH_ATTR http_disconnect_callback( void * arg )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void ICACHE_FLASH_ATTR http_error_callback( void *arg, sint8 errType )
|
|
||||||
{
|
|
||||||
HTTPCLIENT_DEBUG( "Disconnected with error\n" );
|
|
||||||
http_disconnect_callback( arg );
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
static void ICACHE_FLASH_ATTR http_timeout_callback( void *arg )
|
static void ICACHE_FLASH_ATTR http_timeout_callback( void *arg )
|
||||||
{
|
{
|
||||||
HTTPCLIENT_DEBUG( "Connection timeout\n" );
|
HTTPCLIENT_DEBUG( "Connection timeout\n" );
|
||||||
|
@ -440,6 +433,13 @@ static void ICACHE_FLASH_ATTR http_timeout_callback( void *arg )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
static void ICACHE_FLASH_ATTR http_error_callback( void *arg, sint8 errType )
|
||||||
|
{
|
||||||
|
HTTPCLIENT_DEBUG( "Disconnected with error: %d\n", errType );
|
||||||
|
http_timeout_callback( arg );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
static void ICACHE_FLASH_ATTR http_dns_callback( const char * hostname, ip_addr_t * addr, void * arg )
|
static void ICACHE_FLASH_ATTR http_dns_callback( const char * hostname, ip_addr_t * addr, void * arg )
|
||||||
{
|
{
|
||||||
request_args_t * req = (request_args_t *) arg;
|
request_args_t * req = (request_args_t *) arg;
|
||||||
|
|
Loading…
Reference in New Issue