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
6dfcdefe
Unverified
Commit
6dfcdefe
authored
Sep 15, 2023
by
Lucas Saavedra Vaz
Committed by
GitHub
Sep 15, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HTTPClient - Fix case sensitiveness for header keys (#8632)
parent
b65d1c7d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
libraries/HTTPClient/src/HTTPClient.cpp
libraries/HTTPClient/src/HTTPClient.cpp
+2
-2
No files found.
libraries/HTTPClient/src/HTTPClient.cpp
View file @
6dfcdefe
...
@@ -1081,7 +1081,7 @@ void HTTPClient::collectHeaders(const char* headerKeys[], const size_t headerKey
...
@@ -1081,7 +1081,7 @@ void HTTPClient::collectHeaders(const char* headerKeys[], const size_t headerKey
String
HTTPClient
::
header
(
const
char
*
name
)
String
HTTPClient
::
header
(
const
char
*
name
)
{
{
for
(
size_t
i
=
0
;
i
<
_headerKeysCount
;
++
i
)
{
for
(
size_t
i
=
0
;
i
<
_headerKeysCount
;
++
i
)
{
if
(
_currentHeaders
[
i
].
key
==
name
)
{
if
(
_currentHeaders
[
i
].
key
.
equalsIgnoreCase
(
name
)
)
{
return
_currentHeaders
[
i
].
value
;
return
_currentHeaders
[
i
].
value
;
}
}
}
}
...
@@ -1112,7 +1112,7 @@ int HTTPClient::headers()
...
@@ -1112,7 +1112,7 @@ int HTTPClient::headers()
bool
HTTPClient
::
hasHeader
(
const
char
*
name
)
bool
HTTPClient
::
hasHeader
(
const
char
*
name
)
{
{
for
(
size_t
i
=
0
;
i
<
_headerKeysCount
;
++
i
)
{
for
(
size_t
i
=
0
;
i
<
_headerKeysCount
;
++
i
)
{
if
((
_currentHeaders
[
i
].
key
==
name
)
&&
(
_currentHeaders
[
i
].
value
.
length
()
>
0
))
{
if
((
_currentHeaders
[
i
].
key
.
equalsIgnoreCase
(
name
)
)
&&
(
_currentHeaders
[
i
].
value
.
length
()
>
0
))
{
return
true
;
return
true
;
}
}
}
}
...
...
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