Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37844504
en ru br
ALT Linux repositórios
S:1.0.9-alt6.qa1
5.0: 1.0.9-alt5
4.1: 1.0.9-alt5
4.0: 1.0.9-alt5
3.0: 1.0.9-alt4

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


--- 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;
 }
 
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009