Roxen.git / server / modules / tags / insert_cached_href.pike

version» Context lines:

Roxen.git/server/modules/tags/insert_cached_href.pike:511:       recursion_depth++;       if(args->nocache)    NOCACHE();    else    CACHE(60);       string res = href_database->get_data(Attributes(args)->get_db_args(),    (["x-roxen-recursion-depth":recursion_depth])); -  if(args["decode-xml"]) +  +  if(args["decode-xml"]) {    // Parse xml header and recode content to internal representation.    res = Parser.XML.Simple()->autoconvert(res);    -  +  // Remove any bytes potentially still preceeding the first '<' in the xml file +  return res[search(res, "<")..]; +  } +     return res;    }   }      #ifdef THREADS      /* This class represents the retrieval of data from an URL */   class HTTPClient {    int status, timeout, start_time;    object con;