Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37399793
en ru br
Репозитории ALT
S:1.0.9-alt6.qa1
5.1: 1.0.9-alt5
4.1: 1.0.9-alt5
4.0: 1.0.9-alt5
3.0: 1.0.9-alt4
www.altlinux.org/Changes

Группа :: Система/Библиотеки
Пакет: libghttp

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: libghttp-1.0.9-deb-http_proxy.patch
Скачать


--- 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;
 }
 
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin