mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 13:34:54 +01:00
[http_request] allow basic auth for idf (#7086)
This commit is contained in:
parent
626ed815fb
commit
5bec0a6534
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue