Skip to content

Commit

Permalink
Header name comparison should be case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieucarbou committed Oct 15, 2024
1 parent d3f8769 commit 8311339
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PsychicResponse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ void PsychicResponse::addHeader(const char* field, const char* value)
{
// erase any existing ones.
for (auto itr = _headers.begin(); itr != _headers.end();) {
if (itr->field.equals(field))
if (itr->field.equalsIgnoreCase(field))
itr = _headers.erase(itr);
else
itr++;
Expand Down

0 comments on commit 8311339

Please sign in to comment.