diff options
author | Alin Năstac <mrness@gentoo.org> | 2009-11-29 09:58:56 +0000 |
---|---|---|
committer | Alin Năstac <mrness@gentoo.org> | 2009-11-29 09:58:56 +0000 |
commit | bb712b946d8c7c8462056917406268dd55f067f6 (patch) | |
tree | bb7e63c5538d16c3c6d76c026556040d2ee1f516 /net-proxy/tinyproxy/files | |
parent | Update Manifest (diff) | |
download | gentoo-2-bb712b946d8c7c8462056917406268dd55f067f6.tar.gz gentoo-2-bb712b946d8c7c8462056917406268dd55f067f6.tar.bz2 gentoo-2-bb712b946d8c7c8462056917406268dd55f067f6.zip |
Add http-via-header USE flag (#292715). Migrate to EAPI 2.
(Portage version: 2.1.6.13/cvs/Linux x86_64)
Diffstat (limited to 'net-proxy/tinyproxy/files')
-rw-r--r-- | net-proxy/tinyproxy/files/tinyproxy-no-via.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/net-proxy/tinyproxy/files/tinyproxy-no-via.patch b/net-proxy/tinyproxy/files/tinyproxy-no-via.patch new file mode 100644 index 000000000000..575ec06765c3 --- /dev/null +++ b/net-proxy/tinyproxy/files/tinyproxy-no-via.patch @@ -0,0 +1,40 @@ +--- src/reqs.c 2009-09-28 23:27:46.000000000 -0400 ++++ ../reqs.c 2009-11-10 15:06:28.062785177 -0400 +@@ -1002,36 +1002,5 @@ + unsigned int major, unsigned int minor) + { +- ssize_t len; +- char hostname[512]; +- char *data; +- int ret; +- +- if (config.via_proxy_name) { +- strlcpy(hostname, config.via_proxy_name, sizeof(hostname)); +- } else if (gethostname(hostname, sizeof(hostname)) < 0) { +- strcpy(hostname, "unknown"); +- } +- +- /* +- * See if there is a "Via" header. If so, again we need to do a bit +- * of processing. +- */ +- len = hashmap_entry_by_key(hashofheaders, "via", (void **)&data); +- if (len > 0) { +- ret = write_message(fd, +- "Via: %s, %hu.%hu %s (%s/%s)\r\n", +- data, +- major, minor, +- hostname, PACKAGE, VERSION); +- +- hashmap_remove(hashofheaders, "via"); +- } else { +- ret = write_message(fd, +- "Via: %hu.%hu %s (%s/%s)\r\n", +- major, minor, +- hostname, PACKAGE, VERSION); +- } +- +- return ret; ++ return 1; + } + |