*** apache_base:[src.main]http_core.c;1 Mon Aug 23 11:38:21 1999 --- apache_cur:[src.main]http_core.c;3 Mon Aug 23 11:38:04 1999 *************** *** 3070,3079 **** ap_set_last_modified(r); ap_set_etag(r); ap_table_setn(r->headers_out, "Accept-Ranges", "bytes"); ! if (((errstatus = ap_meets_conditions(r)) != OK) ! || (errstatus = ap_set_content_length(r, r->finfo.st_size))) { ! return errstatus; } #ifdef USE_MMAP_FILES ap_block_alarms(); --- 3070,3099 ---- ap_set_last_modified(r); ap_set_etag(r); ap_table_setn(r->headers_out, "Accept-Ranges", "bytes"); ! if ((errstatus = ap_meets_conditions(r)) != OK) return errstatus; ! #ifdef VMS ! /* ! * The VMS CRTL only returns an accurate value for in the stat block ! * if the file's record format (st_fab_rfm) is fixed (1) or stream-LF (5). ! */ ! if ( (r->finfo.st_fab_rfm == 5) || (r->finfo.st_fab_rfm == 1) ) { ! /* ! * File has record format of compatible type. ! */ ! errstatus = ap_set_content_length(r, r->finfo.st_size); ! } else { ! /* ! * change to chunked transfer if possible. ! */ ! errstatus = 0; /* fake a success for ap_set_content_length */ } + #else + /* + * add content-length: header to response. + */ + errstatus = ap_set_content_length(r, r->finfo.st_size); + #endif + if ( errstatus ) return errstatus; #ifdef USE_MMAP_FILES ap_block_alarms();