use ReadLine() instead of GetLine() which sometimes hangs

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35004 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2005-07-29 22:28:02 +00:00
parent 93ed8ff770
commit f3d0213e5b

View File

@ -154,7 +154,7 @@ bool wxHTTP::ParseHeaders()
while (1)
#endif
{
m_perr = GetLine(this, line);
m_perr = ReadLine(this, line);
if (m_perr != wxPROTO_NOERR)
return false;
@ -258,7 +258,7 @@ bool wxHTTP::BuildRequest(const wxString& path, wxHTTP_Req req)
}
wxString tmp_str;
m_perr = GetLine(this, tmp_str);
m_perr = ReadLine(this, tmp_str);
if (m_perr != wxPROTO_NOERR) {
RestoreState();
return false;