Skip to content

Commit 399b5e6

Browse files
committed
Merge branch 'master' into esp32-s3-support
2 parents 6a97f1e + c4954dd commit 399b5e6

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

Diff for: libraries/HTTPClient/src/HTTPClient.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -1645,7 +1645,7 @@ void HTTPClient::setCookie(String date, String headerValue)
16451645
for (auto c = _cookieJar->begin(); c != _cookieJar->end(); ++c) {
16461646
if (c->domain == cookie.domain && c->name == cookie.name) {
16471647
// 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
16491649
|| (!cookie.max_age.valid && cookie.expires.valid && cookie.expires.date < now_gmt)) {
16501650
_cookieJar->erase(c);
16511651
c--;
@@ -1671,7 +1671,7 @@ bool HTTPClient::generateCookieString(String *cookieString)
16711671
bool found = false;
16721672

16731673
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)) {
16751675
_cookieJar->erase(c);
16761676
c--;
16771677
} else if (_host.indexOf(c->domain) >= 0 && (!c->secure || _secure) ) {
@@ -1684,5 +1684,3 @@ bool HTTPClient::generateCookieString(String *cookieString)
16841684
}
16851685
return found;
16861686
}
1687-
1688-

Diff for: libraries/WiFiClientSecure/src/ssl_client.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include "esp_crt_bundle.h"
2121
#include "WiFi.h"
2222

23-
#ifndef MBEDTLS_KEY_EXCHANGE__SOME__PSK_ENABLED
23+
#if !defined(MBEDTLS_KEY_EXCHANGE__SOME__PSK_ENABLED) && !defined(MBEDTLS_KEY_EXCHANGE_SOME_PSK_ENABLED)
2424
# warning "Please configure IDF framework to include mbedTLS -> Enable pre-shared-key ciphersuites and activate at least one cipher"
2525
#else
2626

0 commit comments

Comments
 (0)