httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n.@apache.org
Subject cvs commit: httpd-2.0/modules/mappers mod_negotiation.c
Date Sat, 17 Apr 2004 00:19:16 GMT
nd          2004/04/16 17:19:16

  Modified:    modules/mappers mod_negotiation.c
  Log:
  don't return forbidden, if the file was just not found.
  
  Revision  Changes    Path
  1.121     +1 -1      httpd-2.0/modules/mappers/mod_negotiation.c
  
  Index: mod_negotiation.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/mappers/mod_negotiation.c,v
  retrieving revision 1.120
  retrieving revision 1.121
  diff -u -u -r1.120 -r1.121
  --- mod_negotiation.c	9 Feb 2004 20:29:20 -0000	1.120
  +++ mod_negotiation.c	17 Apr 2004 00:19:16 -0000	1.121
  @@ -956,7 +956,7 @@
                   APR_OS_DEFAULT, neg->pool)) != APR_SUCCESS) {
           ap_log_rerror(APLOG_MARK, APLOG_ERR, status, r,
                         "cannot access type map file: %s", rr->filename);
  -        return HTTP_FORBIDDEN;
  +        return APR_STATUS_IS_ENOENT(status) ? HTTP_NOT_FOUND : HTTP_FORBIDDEN;
       }
   
       clean_var_rec(&mime_info);
  
  
  

Mime
View raw message