]> git.pld-linux.org Git - packages/poldek.git/commitdiff
- be nice when working with proxy
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 24 Dec 2003 10:59:00 +0000 (10:59 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    poldek-be-nice-for-proxy.patch -> 1.1

poldek-be-nice-for-proxy.patch [new file with mode: 0644]

diff --git a/poldek-be-nice-for-proxy.patch b/poldek-be-nice-for-proxy.patch
new file mode 100644 (file)
index 0000000..0cf38fe
--- /dev/null
@@ -0,0 +1,25 @@
+diff -urN poldek-0.18.1.org/vfile/vfcurl.c poldek-0.18.1/vfile/vfcurl.c
+--- poldek-0.18.1.org/vfile/vfcurl.c   2003-12-24 11:53:54.097439384 +0100
++++ poldek-0.18.1/vfile/vfcurl.c       2003-12-24 11:56:51.010544504 +0100
+@@ -85,6 +85,7 @@
+ {
+     char *errmsg = "curl_easy_setopt failed\n";
+     char user_passwd[256];
++    struct curl_slist *cheaders = NULL;
+     
+     if ((curlh = curl_easy_init()) == NULL)
+         return 0;
+@@ -147,6 +148,13 @@
+         return 0;
+     }
+ #endif
++
++    cheaders = curl_slist_append(cheaders, "Pragma:"); 
++    if (curl_easy_setopt(curlh, CURLOPT_HTTPHEADER, cheaders)) {
++      vfile_err_fn(errmsg);
++      return 0;
++    }
++    
+     return 1;
+ }
This page took 0.036225 seconds and 4 git commands to generate.