httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Bloom <rbl...@gmail.com>
Subject mod_actions 1.32 patch never made it to 2.0
Date Tue, 14 Dec 2004 03:26:58 GMT
A co-worker of mine pointed out that the following works in Apache
1.3, but not 2.0 if the location /foo, doesn't exist on the disk:

AddHandler foobar /cgi-bin/printenv
<Location /foo>
    SetHandler foobar
</Location>

This patch ports this behavior forward into 2.0.

Index: modules/mappers/mod_actions.c
===================================================================
--- modules/mappers/mod_actions.c       (revision 111773)
+++ modules/mappers/mod_actions.c       (working copy)
@@ -163,11 +163,6 @@
     if ((t = apr_table_get(conf->action_types,
                       action ? action : ap_default_type(r)))) {
        script = t;
-       if (r->finfo.filetype == 0) {
-           ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r,
-                       "File does not exist: %s", r->filename);
-           return HTTP_NOT_FOUND;
-       }
     }

     if (script == NULL)

I'm not subscribed to the list anymore, but please let me know when
this is committed.

Ryan

-- 
Ryan Bloom
rbb@apache.org
rbb@redhat.com
rbloom@gmail.com

Mime
View raw message