httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@decus.org (Rodent of Unusual Size)
Subject [PATCH?] for mod_include and redirects
Date Fri, 19 Sep 1997 08:45:32 GMT
    I *think* this corrects an oversight in mod_include.  It currently
    only processes temporary redirects (what REDIRECT is defined to be)
    and not any others.

    Opinions?

    #ken    P-)}

Index: mod_include.c
===================================================================
RCS file: /export/home/cvs/apachen/src/modules/standard/mod_include.c,v
retrieving revision 1.53
diff -u -r1.53 mod_include.c
--- mod_include.c	1997/09/19 08:39:04	1.53
+++ mod_include.c	1997/09/19 08:41:12
@@ -580,7 +580,7 @@
 
     /* Run it. */
 
-    if (run_sub_req(rr) == REDIRECT) {
+    if (is_HTTP_REDIRECT(run_sub_req(rr))) {
         char *location = table_get(rr->headers_out, "Location");
         location = escape_html(rr->pool, location);
         rvputs(r, "<A HREF=\"", location, "\">", location, "</A>", NULL);

Mime
View raw message