fix for [ 1060093 ] wxURI && wxStringBufferLength part 2 - query and fragment not appended to URL in getinputstream

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30282 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Ryan Norton
2004-11-05 08:50:30 +00:00
parent 5f81e1e966
commit c08a36538a

View File

@@ -285,9 +285,24 @@ wxInputStream *wxURL::GetInputStream()
#endif #endif
// When we use a proxy, we have to pass the whole URL to it. // When we use a proxy, we have to pass the whole URL to it.
wxInputStream *the_i_stream = wxInputStream *the_i_stream;
(m_useProxy) ? m_protocol->GetInputStream(m_url) :
m_protocol->GetInputStream(m_path); if (m_useProxy != NULL)
{
the_i_stream = m_protocol->GetInputStream(m_url);
}
else
{
wxString fullPath = m_path;
if (HasQuery())
fullPath += wxT("?") + m_query;
if (HasFragment())
fullPath += wxT("#") + m_fragment;
the_i_stream = m_protocol->GetInputStream(fullPath);
}
if (!the_i_stream) if (!the_i_stream)
{ {