Hi,

I have fixed the problem described in bug report 7114 regarding the
missing WWW-Authenticate header in responses to directory URL's, while
using
the DirectoryIndex directive.
The attached patch contains a simple one-liner fix to fix the indicated
bug.

Note that this is just a port of the original patch I posted for Apache
1.3.17
(and is included in Apache 1.3.19) to the new httpd 2.0 release.

Best Regards,

        Gertjan van Wingerde.
diff -u --recursive --new-file httpd-2_0_16/modules/mappers/mod_dir.c 
httpd-2_0_16.patched/modules/mappers/mod_dir.c
--- httpd-2_0_16/modules/mappers/mod_dir.c      Sat Feb 24 23:40:49 2001
+++ httpd-2_0_16.patched/modules/mappers/mod_dir.c      Wed Apr 11 21:36:57 2001
@@ -194,7 +194,8 @@
         /* If the request returned a redirect, propagate it to the client */
 
         if (ap_is_HTTP_REDIRECT(rr->status) ||
-            (rr->status == HTTP_NOT_ACCEPTABLE && num_names == 1)) {
+            (rr->status == HTTP_NOT_ACCEPTABLE && num_names == 1) ||
+            (rr->status == HTTP_UNAUTHORIZED && num_names == 1)) {
 
             apr_pool_join(r->pool, rr->pool);
             error_notfound = rr->status;

begin:vcard 
n:van Wingerde;Gertjan
tel;fax:+31 53 4783647
tel;home:+31 53 4761822
tel;work:+31 53 4824220
x-mozilla-html:FALSE
adr:;;Geessinkweg 177;Enschede;;7544 TX;The Netherlands
version:2.1
email;internet:[EMAIL PROTECTED]
title:Mr.
x-mozilla-cpt:;-15968
fn:Gertjan van Wingerde
end:vcard

Reply via email to