fix for comparison bug in GetHeader()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21492 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-06-28 23:40:29 +00:00
parent 728a6147f9
commit 15a126c5e3
2 changed files with 2 additions and 1 deletions

View File

@@ -179,6 +179,7 @@ All:
- always NUL-terminate the log messages - always NUL-terminate the log messages
- wxRegEx::Compile() now calculates the number of groups correctly - wxRegEx::Compile() now calculates the number of groups correctly
- wxHTTP::GetHeader() didn't find headers which not all in upper case
All (GUI): All (GUI):

View File

@@ -90,7 +90,7 @@ void wxHTTP::SetHeader(const wxString& header, const wxString& h_data)
wxNode *node = m_headers.Find(header); wxNode *node = m_headers.Find(header);
if (!node) if (!node)
m_headers.Append(header, (wxObject *)(new wxString(h_data))); m_headers.Append(header.MakeUpper(), (wxObject *)(new wxString(h_data)));
else { else {
wxString *str = (wxString *)node->Data(); wxString *str = (wxString *)node->Data();
(*str) = h_data; (*str) = h_data;