Diff for /parser3/src/main/pa_request.C between versions 1.245.2.37.2.30 and 1.245.2.37.2.33

version 1.245.2.37.2.30, 2003/04/08 16:11:54 version 1.245.2.37.2.33, 2003/04/21 06:17:48
Line 615  const String& Request::absolute(const St Line 615  const String& Request::absolute(const St
                 result << relative_name;                  result << relative_name;
                 return result;                  return result;
         } else           } else 
                 return relative_name.pos("://")==STRING_NOT_FOUND?                  if(relative_name.pos("://")!=STRING_NOT_FOUND // something like "http://xxx"
                         relative(request_info.path_translated, relative_name)  #ifdef WIN32
                         :relative_name; // something like "http://xxx"                          || relative_name.pos(":")==1  // DRIVE:
                           || relative_name.starts_with("\\\\") // UNC1
                           || relative_name.starts_with("//") // UNC2
   #endif
                           )
                           return relative_name;
                   else
                           return relative(request_info.path_translated, relative_name);
 }  }
   
 static void add_header_attribute(  static void add_header_attribute(
Line 690  const String& Request::mime_type_of(cons Line 697  const String& Request::mime_type_of(cons
         if(mime_types)          if(mime_types)
                 if(const char* cext=strrchr(user_file_name_cstr, '.')) {                  if(const char* cext=strrchr(user_file_name_cstr, '.')) {
                         String sext(++cext);                          String sext(++cext);
                         if(mime_types->locate(0, sext.change_case(charsets.source(), String::CC_LOWER)))                          Table::Action_options options;
                           if(mime_types->locate(0, sext.change_case(charsets.source(), String::CC_LOWER), options))
                                         if(const String* result=mime_types->item(1))                                          if(const String* result=mime_types->item(1))
                                                 return *result;                                                  return *result;
                                 else                                  else
Line 775  Request::Exception_details Request::get_ Line 783  Request::Exception_details Request::get_
   
         return Request::Exception_details(trace, problem_source, vhash);          return Request::Exception_details(trace, problem_source, vhash);
 }  }
   
 //  
   

Removed from v.1.245.2.37.2.30  
changed lines
  Added in v.1.245.2.37.2.33


E-mail: