Diff for /parser3/src/main/pa_request.C between versions 1.245.2.1 and 1.247

version 1.245.2.1, 2003/01/28 11:38:50 version 1.247, 2003/04/21 06:03:30
Line 72  Request::Request(Pool& apool, Line 72  Request::Request(Pool& apool,
         finterrupted(false)          finterrupted(false)
 {  {
         // default charsets          // default charsets
         pool().set_source_charset(UTF8_charset);          pool().set_source_charset(*utf8_charset);
         pool().set_client_charset(UTF8_charset);          pool().set_client_charset(*utf8_charset);
   
         // maybe expire old caches          // maybe expire old caches
         cache_managers->maybe_expire();          cache_managers->maybe_expire();
Line 545  const String& Request::absolute(const St Line 545  const String& Request::absolute(const St
                 result << relative_name;                  result << relative_name;
                 return result;                  return result;
         } else           } else 
                 return relative_name.pos("://")<0? relative(info.path_translated, relative_name)                  if(relative_name.pos("://")>0 // something like "http://xxx"
                         :relative_name; // 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,   static void add_header_attribute(const Hash::Key& aattribute, Hash::Val *ameaning, 
Line 629  const String& Request::mime_type_of(cons Line 637  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(pool(), ++cext);                          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))                                  if(const String *result=mime_types->item(1))
                                         return *result;                                          return *result;
                                 else                                  else

Removed from v.1.245.2.1  
changed lines
  Added in v.1.247


E-mail: