mirror of
https://github.com/esphome/esphome.git
synced 2024-11-22 15:08:10 +01:00
http_request fix urls caching (#1174)
* Fix cache * CI Fix Co-authored-by: Nikolay Vasilchuk <nikolay.vasilchuk@corp.mail.ru>
This commit is contained in:
parent
6405799cc2
commit
10e411f8c1
1 changed files with 3 additions and 3 deletions
|
@ -15,15 +15,15 @@ void HttpRequestComponent::dump_config() {
|
|||
void HttpRequestComponent::send() {
|
||||
bool begin_status = false;
|
||||
this->client_.setReuse(true);
|
||||
static const String URL = this->url_.c_str();
|
||||
const String url = this->url_.c_str();
|
||||
#ifdef ARDUINO_ARCH_ESP32
|
||||
begin_status = this->client_.begin(URL);
|
||||
begin_status = this->client_.begin(url);
|
||||
#endif
|
||||
#ifdef ARDUINO_ARCH_ESP8266
|
||||
#ifndef CLANG_TIDY
|
||||
this->client_.setFollowRedirects(true);
|
||||
this->client_.setRedirectLimit(3);
|
||||
begin_status = this->client_.begin(*this->get_wifi_client_(), URL);
|
||||
begin_status = this->client_.begin(*this->get_wifi_client_(), url);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue