Fix in parse headers so it wouldn't always store an empty string
for each header value. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5913 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -142,13 +142,8 @@ bool wxHTTP::ParseHeaders()
|
|||||||
if (line.Length() == 0)
|
if (line.Length() == 0)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
tokenzr.SetString(line, " :\t\n\r");
|
wxString left_str = line.BeforeFirst(':');
|
||||||
if (!tokenzr.HasMoreTokens())
|
wxString *str = new wxString(line.AfterFirst(':').Strip(wxString::both));
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
wxString left_str = tokenzr.GetNextToken();
|
|
||||||
wxString *str = new wxString(tokenzr.GetNextToken());
|
|
||||||
|
|
||||||
left_str.MakeUpper();
|
left_str.MakeUpper();
|
||||||
|
|
||||||
m_headers.Append(left_str, (wxObject *) str);
|
m_headers.Append(left_str, (wxObject *) str);
|
||||||
|
Reference in New Issue
Block a user