httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexei Kosut <ako...@hyperreal.com>
Subject cvs commit: apache/src mod_negotiation.c
Date Tue, 09 Apr 1996 22:49:56 GMT
akosut      96/04/09 15:49:56

  Modified:    src       mod_negotiation.c
  Log:
  Fix problem where files with handlers but no types were getting ignored
  with MultiViews.
  
  Revision  Changes    Path
  1.5       +8 -1      apache/src/mod_negotiation.c
  
  Index: mod_negotiation.c
  ===================================================================
  RCS file: /export/home/cvs/apache/src/mod_negotiation.c,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -C3 -r1.4 -r1.5
  *** mod_negotiation.c	1996/04/02 10:48:49	1.4
  --- mod_negotiation.c	1996/04/09 22:49:54	1.5
  ***************
  *** 662,668 ****
    	 */
    	
    	sub_req = sub_req_lookup_file (dir_entry->d_name, r);
  ! 	
    	if (sub_req->status != 200 || !sub_req->content_type) continue;
    	
    	/* If it's a map file, we use that instead of the map
  --- 662,675 ----
    	 */
    	
    	sub_req = sub_req_lookup_file (dir_entry->d_name, r);
  ! 
  ! 	/* If it has a handler, we'll pretend it's a CGI script,
  ! 	 * since that's a good indication of the sort of thing it
  ! 	 * might be doing.
  ! 	 */
  ! 	if (sub_req->handler && !sub_req->content_type)
  ! 	  sub_req->content_type = CGI_MAGIC_TYPE;
  ! 
    	if (sub_req->status != 200 || !sub_req->content_type) continue;
    	
    	/* If it's a map file, we use that instead of the map
  
  
  

Mime
View raw message