X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3b4183d82b7b833106edd751632c2f24c9580eb6..cce4b3fe2b05e1d928d7a5930c33c624b2f3a667:/src/common/url.cpp?ds=sidebyside diff --git a/src/common/url.cpp b/src/common/url.cpp index 46e26db8ce..f2d58e5dbb 100644 --- a/src/common/url.cpp +++ b/src/common/url.cpp @@ -250,7 +250,8 @@ wxInputStream *wxURL::GetInputStream(void) addr.Service(m_servname); - if (!m_protocol->Connect(addr)) { + if (!m_protocol->Connect(addr, TRUE)) // Watcom needs the 2nd arg for some reason + { m_error = wxURL_CONNERR; return NULL; } @@ -281,7 +282,7 @@ void wxURL::SetDefaultProxy(const wxString& url_proxy) addr.Hostname(hostname); addr.Service(port); - g_proxy->Connect(addr); + g_proxy->Connect(addr, TRUE); // Watcom needs the 2nd arg for some reason } void wxURL::SetProxy(const wxString& url_proxy) @@ -306,7 +307,7 @@ void wxURL::SetProxy(const wxString& url_proxy) addr.Hostname(hostname); addr.Service(port); - m_proxy.Connect(addr); + m_proxy.Connect(addr, TRUE); // Watcom needs the 2nd arg for some reason m_protocol = &m_proxy; m_protoname = "proxy";