ALT Linux repositórios
Group :: Sistema/Bibliotecas
RPM: libghttp
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: libghttp-1.0.9-deb-http_proxy.patch
Download
Download
--- libghttp-1.0.9~/ghttp.c 2001-01-23 00:32:15 +0000
+++ libghttp-1.0.9/ghttp.c 2004-05-15 09:04:59 +0000
@@ -57,6 +57,8 @@ ghttp_request_new(void)
{
struct _ghttp_request *l_return = NULL;
+ char *proxy_env = NULL;
+
/* create everything */
l_return = malloc(sizeof(struct _ghttp_request));
memset(l_return, 0, sizeof(struct _ghttp_request));
@@ -65,6 +67,11 @@ ghttp_request_new(void)
l_return->req = http_req_new();
l_return->resp = http_resp_new();
l_return->conn = http_trans_conn_new();
+
+ /* FIXME: Should this be done here or somewhere else? */
+ if((proxy_env = getenv("http_proxy")))
+ ghttp_set_proxy(l_return, proxy_env);
+
return l_return;
}