File tree 2 files changed +3
-5
lines changed
2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -1645,7 +1645,7 @@ void HTTPClient::setCookie(String date, String headerValue)
1645
1645
for (auto c = _cookieJar->begin (); c != _cookieJar->end (); ++c) {
1646
1646
if (c->domain == cookie.domain && c->name == cookie.name ) {
1647
1647
// when evaluating, max-age takes precedence over expires if both are defined
1648
- if (cookie.max_age .valid && ((cookie.date + cookie.max_age .duration ) < now_gmt || cookie.max_age .duration <= 0 )
1648
+ if (( cookie.max_age .valid && ((cookie.date + cookie.max_age .duration ) < now_gmt)) || cookie.max_age .duration <= 0
1649
1649
|| (!cookie.max_age .valid && cookie.expires .valid && cookie.expires .date < now_gmt)) {
1650
1650
_cookieJar->erase (c);
1651
1651
c--;
@@ -1671,7 +1671,7 @@ bool HTTPClient::generateCookieString(String *cookieString)
1671
1671
bool found = false ;
1672
1672
1673
1673
for (auto c = _cookieJar->begin (); c != _cookieJar->end (); ++c) {
1674
- if (c->max_age .valid && ((c->date + c->max_age .duration ) < now_gmt) || (!c->max_age .valid && c->expires .valid && c->expires .date < now_gmt)) {
1674
+ if (( c->max_age .valid && ((c->date + c->max_age .duration ) < now_gmt) ) || (!c->max_age .valid && c->expires .valid && c->expires .date < now_gmt)) {
1675
1675
_cookieJar->erase (c);
1676
1676
c--;
1677
1677
} else if (_host.indexOf (c->domain ) >= 0 && (!c->secure || _secure) ) {
@@ -1684,5 +1684,3 @@ bool HTTPClient::generateCookieString(String *cookieString)
1684
1684
}
1685
1685
return found;
1686
1686
}
1687
-
1688
-
Original file line number Diff line number Diff line change 20
20
#include " esp_crt_bundle.h"
21
21
#include " WiFi.h"
22
22
23
- #ifndef MBEDTLS_KEY_EXCHANGE__SOME__PSK_ENABLED
23
+ #if !defined( MBEDTLS_KEY_EXCHANGE__SOME__PSK_ENABLED) && !defined(MBEDTLS_KEY_EXCHANGE_SOME_PSK_ENABLED)
24
24
# warning "Please configure IDF framework to include mbedTLS -> Enable pre-shared-key ciphersuites and activate at least one cipher"
25
25
#else
26
26
You can’t perform that action at this time.
0 commit comments