[http_request] allow basic auth for idf (#7086)

This commit is contained in:
Olivier ARCHER 2024-07-22 01:29:09 +02:00 committed by GitHub
parent 40e79299d5
commit 1f4829598a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -52,6 +52,7 @@ std::shared_ptr<HttpContainer> HttpRequestIDF::start(std::string url, std::strin
config.timeout_ms = this->timeout_; config.timeout_ms = this->timeout_;
config.disable_auto_redirect = !this->follow_redirects_; config.disable_auto_redirect = !this->follow_redirects_;
config.max_redirection_count = this->redirect_limit_; config.max_redirection_count = this->redirect_limit_;
config.auth_type = HTTP_AUTH_TYPE_BASIC;
#if CONFIG_MBEDTLS_CERTIFICATE_BUNDLE #if CONFIG_MBEDTLS_CERTIFICATE_BUNDLE
if (secure) { if (secure) {
config.crt_bundle_attach = esp_crt_bundle_attach; config.crt_bundle_attach = esp_crt_bundle_attach;