#if wxUSE_PROTOCOL_HTTP
if (m_useProxy)
{
- // destroy the previously created protocol as we'll be using m_proxy
- delete m_protocol;
-
// Third, we rebuild the URL.
m_url = m_scheme + wxT(":");
if (m_protoinfo->m_needhost)
// down the program startup (especially if there is no DNS server
// available, in which case it may take up to 1 minute)
- if ( getenv("HTTP_PROXY") )
+ if ( wxGetenv(_T("HTTP_PROXY")) )
{
wxURL::ms_useDefaultProxy = true;
}