--- parser3/src/main/pa_request.C 2002/12/19 10:17:42 1.244 +++ parser3/src/main/pa_request.C 2003/04/21 06:03:30 1.247 @@ -1,11 +1,11 @@ /** @file Parser: request class main part. @see compile.C and execute.C. - Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) + Copyright (c) 2001, 2003 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char* IDENT_REQUEST_C="$Date: 2002/12/19 10:17:42 $"; +static const char* IDENT_REQUEST_C="$Date: 2003/04/21 06:03:30 $"; #include "pa_sapi.h" #include "pa_common.h" @@ -545,8 +545,16 @@ const String& Request::absolute(const St result << relative_name; return result; } else - return relative_name.pos("://")<0? relative(info.path_translated, relative_name) - :relative_name; // something like "http://xxx" + if(relative_name.pos("://")>0 // something like "http://xxx" +#ifdef WIN32 + || relative_name.pos(":")==1 // DRIVE: + || relative_name.starts_with("\\\\") // UNC1 + || relative_name.starts_with("//") // UNC2 +#endif + ) + return relative_name; + else + return relative(info.path_translated, relative_name); } static void add_header_attribute(const Hash::Key& aattribute, Hash::Val *ameaning, @@ -629,7 +637,8 @@ const String& Request::mime_type_of(cons if(mime_types) if(const char *cext=strrchr(user_file_name_cstr, '.')) { String sext(pool(), ++cext); - if(mime_types->locate(0, sext.change_case(pool(), String::CC_LOWER))) + Table::Action_options options; + if(mime_types->locate(0, sext.change_case(pool(), String::CC_LOWER), options)) if(const String *result=mime_types->item(1)) return *result; else