Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-esp32
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-esp32
Commits
c4954dd5
Unverified
Commit
c4954dd5
authored
Feb 07, 2022
by
Jason2866
Committed by
GitHub
Feb 07, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compile with Arduino lib builder (#6244)
parent
4cbb7389
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
libraries/HTTPClient/src/HTTPClient.cpp
libraries/HTTPClient/src/HTTPClient.cpp
+2
-4
No files found.
libraries/HTTPClient/src/HTTPClient.cpp
View file @
c4954dd5
...
...
@@ -1645,7 +1645,7 @@ void HTTPClient::setCookie(String date, String headerValue)
for
(
auto
c
=
_cookieJar
->
begin
();
c
!=
_cookieJar
->
end
();
++
c
)
{
if
(
c
->
domain
==
cookie
.
domain
&&
c
->
name
==
cookie
.
name
)
{
// when evaluating, max-age takes precedence over expires if both are defined
if
(
cookie
.
max_age
.
valid
&&
((
cookie
.
date
+
cookie
.
max_age
.
duration
)
<
now_gmt
||
cookie
.
max_age
.
duration
<=
0
)
if
(
(
cookie
.
max_age
.
valid
&&
((
cookie
.
date
+
cookie
.
max_age
.
duration
)
<
now_gmt
))
||
cookie
.
max_age
.
duration
<=
0
||
(
!
cookie
.
max_age
.
valid
&&
cookie
.
expires
.
valid
&&
cookie
.
expires
.
date
<
now_gmt
))
{
_cookieJar
->
erase
(
c
);
c
--
;
...
...
@@ -1671,7 +1671,7 @@ bool HTTPClient::generateCookieString(String *cookieString)
bool
found
=
false
;
for
(
auto
c
=
_cookieJar
->
begin
();
c
!=
_cookieJar
->
end
();
++
c
)
{
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
))
{
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
))
{
_cookieJar
->
erase
(
c
);
c
--
;
}
else
if
(
_host
.
indexOf
(
c
->
domain
)
>=
0
&&
(
!
c
->
secure
||
_secure
)
)
{
...
...
@@ -1684,5 +1684,3 @@ bool HTTPClient::generateCookieString(String *cookieString)
}
return
found
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment