Added wxInternetFilesystemModule to fs_inet.cpp
Fixed PROXY support in wxURL, wxHTTP. You can set the environement variable HTTP_PROXY now. Fixed parsing of content type in wxHtmlFilter Added commments to gsocket.c wxURL parses the URL only once now. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3180 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -26,6 +26,8 @@
|
||||
#include "wx/url.h"
|
||||
#include "wx/module.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
/////////////////////////////////////////////////////////////////
|
||||
// wxProtoInfo
|
||||
/////////////////////////////////////////////////////////////////
|
||||
@@ -126,13 +128,21 @@ IMPLEMENT_DYNAMIC_CLASS(wxProtocolModule, wxModule)
|
||||
|
||||
bool wxProtocolModule::OnInit()
|
||||
{
|
||||
wxURL::g_proxy = new wxHTTP();
|
||||
char *env_http_prox;
|
||||
|
||||
wxURL::g_proxy = NULL;
|
||||
// Initialize the proxy when HTTP_PROXY is defined
|
||||
env_http_prox = getenv("HTTP_PROXY");
|
||||
if (env_http_prox)
|
||||
wxURL::SetDefaultProxy(env_http_prox);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
void wxProtocolModule::OnExit()
|
||||
{
|
||||
delete wxURL::g_proxy;
|
||||
if (wxURL::g_proxy)
|
||||
delete wxURL::g_proxy;
|
||||
wxURL::g_proxy = NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user