Package: jesred Version: 1.2pl1-13 Severity: normal Tags: patch Unless there is a particular reason jesred only redirects ICP_QUERY and GET requests, it should redirect everything. Patch attached to do so.
-- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.25-2-686 (SMP w/1 CPU core) Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages jesred depends on: ii libc6 2.7-12 GNU C Library: Shared libraries ii squid 2.7.STABLE2-2 Internet object cache (WWW proxy c Versions of packages jesred recommends: ii apache2-mpm-worker [httpd] 2.2.9-2 Apache HTTP Server - high speed th -- no debconf information
--- rewrite.c.orig 2008-04-16 09:17:43.000000000 +1000
+++ rewrite.c 2008-04-16 09:47:26.000000000 +1000
@@ -118,22 +118,8 @@
mylog(DEBG, "Request: %s %s %s %s\n", *url, *src_addr, *ident, *method);
#endif
- /* all methods must be GET or ICP_QUERY */
- c = 0;
- if (allow_siblings && (! strcmp(*method, "ICP_QUERY")) )
- c--;
- if( strcmp(*method, "GET") )
- c++;
- if ( c ) {
-#ifdef DEBUG
- for(c = 0; c < 4; c++) {
- if ( end[c] )
- *end[c] = ' ';
- }
- mylog(DEBG, "method not \"GET\" %s\n", buff);
-#endif
- return 1;
- }
+ /* forward all methods */
+ /* removed restriction to GET or ICP_QUERY */
/* URL with less than 7 char is invalid */
if(strlen(*url) <= 7) {
signature.asc
Description: Digital signature

