httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject Re: [PATCH] PR#2112
Date Sun, 03 May 1998 02:43:56 GMT
+1... no sense trying to make mod_autoindex any faster, it just needs a
rewrite. 

Dean

On Sat, 2 May 1998, Jim Jagielski wrote:

> Possible patch... I felt this was safer than using ap_str_tolower
> on apply_to
> 
> Index: src/modules/standard/mod_autoindex.c
> ===================================================================
> RCS file: /export/home/cvs/apache-1.3/src/modules/standard/mod_autoindex.c,v
> retrieving revision 1.75
> diff -u -r1.75 mod_autoindex.c
> --- mod_autoindex.c	1998/04/15 17:09:29	1.75
> +++ mod_autoindex.c	1998/05/03 00:55:43
> @@ -437,13 +437,13 @@
>  	    else if (!path_only) {
>  		if (!content_encoding) {
>  		    if (p->type == BY_TYPE) {
> -			if (content_type && !ap_strcmp_match(content_type, p->apply_to))
> +			if (content_type && !ap_strcasecmp_match(content_type, p->apply_to))
>  			    return p->data;
>  		    }
>  		}
>  		else {
>  		    if (p->type == BY_ENCODING) {
> -			if (!ap_strcmp_match(content_encoding, p->apply_to))
> +			if (!ap_strcasecmp_match(content_encoding, p->apply_to))
>  			    return p->data;
>  		    }
>  		}
> -- 
> ===========================================================================
>    Jim Jagielski   |||   jim@jaguNET.com   |||   http://www.jaguNET.com/
>             "That's no ordinary rabbit... that's the most foul,
>             cruel and bad-tempered rodent you ever laid eyes on"
> 


Mime
View raw message