diff --git a/examples/protocols/esp_http_client/main/esp_http_client_example.c b/examples/protocols/esp_http_client/main/esp_http_client_example.c index 287ac4f4d1..f075e30bd4 100644 --- a/examples/protocols/esp_http_client/main/esp_http_client_example.c +++ b/examples/protocols/esp_http_client/main/esp_http_client_example.c @@ -618,6 +618,7 @@ static void http_perform_as_stream_reader(void) free(buffer); } +#if CONFIG_MBEDTLS_CERTIFICATE_BUNDLE static void https_async(void) { esp_http_client_config_t config = { @@ -675,6 +676,7 @@ static void https_async(void) } esp_http_client_cleanup(client); } +#endif static void https_with_invalid_url(void) { @@ -836,7 +838,9 @@ static void http_test_task(void *pvParameters) http_redirect_to_https(); http_download_chunk(); http_perform_as_stream_reader(); +#if CONFIG_MBEDTLS_CERTIFICATE_BUNDLE https_async(); +#endif https_with_invalid_url(); http_native_request(); #if CONFIG_MBEDTLS_CERTIFICATE_BUNDLE