httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <wr...@rowe-clan.net>
Subject RE: cvs commit: apache-2.0/src/modules/test mod_autoindex.c mod_autoindex.exp
Date Fri, 10 Nov 2000 01:52:36 GMT
Any ideas why this dies? 

>   static int index_directory(request_rec *r,
>   			   autoindex_config_rec *autoindex_conf)
>   {
>       char *title_name = ap_escape_html(r->pool, r->uri);
>       char *title_endp;
>       char *name = r->filename;
>   
>       apr_dir_t *d;
>       apr_status_t status;
>       int num_ent = 0, x;
>       struct ent *head, *p;
>       struct ent **ar = NULL;
>       const char *qstring;
>       int autoindex_opts = autoindex_conf->opts;
>       char keyid;
>       char direction;
>   
>       if ((status = apr_opendir(&d, name, r->pool)) != APR_SUCCESS) {
>   	ap_log_rerror(APLOG_MARK, APLOG_ERR, status, r,
>   		    "Can't open directory for index: %s", r->filename);
>   	return HTTP_FORBIDDEN;
>       }
>   
>   #if APR_HAS_UNICODE_FS 
>       r->content_type = "text/html;charset=utf-8";
>   #else
>       r->content_type = "text/html";
>   #endif
>       ap_update_mtime(r, r->finfo.mtime);
>       ap_set_last_modified(r);
>       ap_set_etag(r);
>   
>       ap_send_http_header(r);

I'm not seeing a content type header when I use netcat against the 
testbed, but the other headers are working.  Did we swallow this up
somewhere, or is it something going on in ap_set_bleh calls?

Mime
View raw message