File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -1291,13 +1291,14 @@ int HTTPClient::handleHeaderResponse()
1291
1291
1292
1292
for (size_t i = 0 ; i < _headerKeysCount; i++) {
1293
1293
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
+ // }
1301
1302
break ; // We found a match, stop looking
1302
1303
}
1303
1304
}
You can’t perform that action at this time.
0 commit comments