Branch: Tag:

2008-01-10

2008-01-10 10:19:56 by Martin Stjernholm <mast@lysator.liu.se>

Moved init of id->misc->pref_languages into a separate function for use from
vary callbacks.

Rev: server/base_server/prototypes.pike:1.199
Rev: server/protocols/ftp.pike:2.118
Rev: server/protocols/http.pike:1.539

2:   // Modified by Francesco Chemolli to add throttling capabilities.   // Copyright © 1996 - 2004, Roxen IS.    - constant cvs_version = "$Id: http.pike,v 1.538 2008/01/09 16:40:43 mast Exp $"; + constant cvs_version = "$Id: http.pike,v 1.539 2008/01/10 10:19:56 mast Exp $";   // #define REQUEST_DEBUG   #define MAGIC_ERROR   
533: Inside #if defined(OLD_RXML_CONFIG)
   array mod_config;    int config_in_url;   #endif -  array|string contents; -  misc->pref_languages=PrefLanguages(); +        misc->cachekey = ProtocolCacheKey();    misc->_cachecallbacks = ({}); -  if( contents = request_headers[ "accept-language" ] ) -  { -  if( !arrayp( contents ) ) -  contents = (contents-" ")/","; -  else -  contents = -  Array.flatten( map( map( contents, `-, " " ), `/, "," ))-({""}); -  misc->pref_languages->languages=contents; -  misc["accept-language"] = contents; -  } +     -  +  init_pref_languages();    init_cookies();       string f = raw_url;