Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit bd8ec7d

Browse files
committedFeb 4, 2022
Comment out support concatenation of headers (not needed anymore when using cookie jar)
1 parent e682273 commit bd8ec7d

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed
 

‎libraries/HTTPClient/src/HTTPClient.cpp

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1291,13 +1291,14 @@ int HTTPClient::handleHeaderResponse()
12911291

12921292
for (size_t i = 0; i < _headerKeysCount; i++) {
12931293
if (_currentHeaders[i].key.equalsIgnoreCase(headerName)) {
1294-
if (!_currentHeaders[i].value.isEmpty()) {
1295-
// Existing value, append this one with a comma
1296-
_currentHeaders[i].value += ',';
1297-
_currentHeaders[i].value += headerValue;
1298-
} else {
1299-
_currentHeaders[i].value = headerValue;
1300-
}
1294+
// Uncomment the following lines if you need to add support for multiple headers with the same key:
1295+
// if (!_currentHeaders[i].value.isEmpty()) {
1296+
// // Existing value, append this one with a comma
1297+
// _currentHeaders[i].value += ',';
1298+
// _currentHeaders[i].value += headerValue;
1299+
// } else {
1300+
_currentHeaders[i].value = headerValue;
1301+
// }
13011302
break; // We found a match, stop looking
13021303
}
13031304
}

0 commit comments

Comments
 (0)
Please sign in to comment.