--- parser3/src/classes/file.C 2002/08/01 10:31:38 1.90 +++ parser3/src/classes/file.C 2002/08/06 09:07:59 1.93 @@ -3,10 +3,10 @@ Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) - - $Id: file.C,v 1.90 2002/08/01 10:31:38 paf Exp $ */ +static const char* IDENT_FILE_C="$Date: 2002/08/06 09:07:59 $"; + #include "pa_config_includes.h" #include "pcre.h" @@ -153,6 +153,7 @@ static void _stat(Request& r, const Stri ff.put(*new(pool) String(pool, "adate"), new(pool) VDate(pool, atime)); ff.put(*new(pool) String(pool, "mdate"), new(pool) VDate(pool, mtime)); ff.put(*new(pool) String(pool, "cdate"), new(pool) VDate(pool, ctime)); + ff.put(*content_type_name, new(pool) VString(r.mime_type_of(lfile_name.cstr(String::UL_FILE_SPEC)))); } static bool is_safe_env_key(const char *key) {