You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by Alexei Kosut <ak...@hyperreal.com> on 1996/06/16 04:25:09 UTC

cvs commit: apache/src mod_actions.c

akosut      96/06/15 19:25:08

  Modified:    src       mod_actions.c
  Log:
  Allow actions to work with DefaultType files.
  
  Submitted by: "Todd R. Eigenschink" <ei...@pluto.mixi.net>
  
  Revision  Changes    Path
  1.4       +2 -1      apache/src/mod_actions.c
  
  Index: mod_actions.c
  ===================================================================
  RCS file: /export/home/cvs/apache/src/mod_actions.c,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -C3 -r1.3 -r1.4
  *** mod_actions.c	1996/04/09 03:59:51	1.3
  --- mod_actions.c	1996/06/16 02:25:06	1.4
  ***************
  *** 171,177 ****
            return DECLINED;
    
        /* Second, check for actions (which override the method scripts) */
  !     if (action && (t = table_get(conf->action_types, action))) {
            script = t;
    	if (r->finfo.st_mode == 0) {
    	    log_reason("File does not exist", r->filename, r);
  --- 171,178 ----
            return DECLINED;
    
        /* Second, check for actions (which override the method scripts) */
  !     if ((action || default_type(r)) && (t = table_get(conf->action_types,
  ! 					action ? action : default_type(r)))) {
            script = t;
    	if (r->finfo.st_mode == 0) {
    	    log_reason("File does not exist", r->filename, r);