Branch: Tag:

2009-04-17

2009-04-17 12:29:05 by 0

Use "cookie" consistently instead of "cookies" to refer to the HTTP header
and the preferred language property. Should fix overcaching in cases where
the intended callback wasn't invoked correctly.

Rev: server/base_server/prototypes.pike:1.243
Rev: server/etc/modules/Roxen.pmod:1.273
Rev: server/modules/misc/preferred_language.pike:1.35

5:   #include <config.h>   #include <module.h>   #include <module_constants.h> - constant cvs_version="$Id: prototypes.pike,v 1.242 2009/04/14 14:30:15 mast Exp $"; + constant cvs_version="$Id: prototypes.pike,v 1.243 2009/04/17 12:29:02 jonasw Exp $";      #ifdef DAV_DEBUG   #define DAV_WERROR(X...) werror(X)
670:    id->register_vary_callback("accept-language", cb);    break;    -  case "cookies": +  case "cookie":    string lang_cookie = item[1]; -  cb = Roxen->get_lang_vary_cb(known_langs, "cookies", lang_cookie); -  id->register_vary_callback("cookies", cb); +  cb = Roxen->get_lang_vary_cb(known_langs, "cookie", lang_cookie); +  id->register_vary_callback("cookie", cb);    break;       case "host":