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:
parent
93ed8ff770
commit
f3d0213e5b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user