diff --git a/docs/changes.txt b/docs/changes.txt index 6ce53269f2..f25dede339 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -179,6 +179,7 @@ All: - always NUL-terminate the log messages - wxRegEx::Compile() now calculates the number of groups correctly +- wxHTTP::GetHeader() didn't find headers which not all in upper case All (GUI): diff --git a/src/common/http.cpp b/src/common/http.cpp index eca6160a5e..13eb56e96d 100644 --- a/src/common/http.cpp +++ b/src/common/http.cpp @@ -90,7 +90,7 @@ void wxHTTP::SetHeader(const wxString& header, const wxString& h_data) wxNode *node = m_headers.Find(header); if (!node) - m_headers.Append(header, (wxObject *)(new wxString(h_data))); + m_headers.Append(header.MakeUpper(), (wxObject *)(new wxString(h_data))); else { wxString *str = (wxString *)node->Data(); (*str) = h_data;