Branch: Tag:

2011-02-07

2011-02-07 12:50:35 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Detect broken use of register_vary_callback(). cf [bug 5365 (#5365)].

Rev: server/base_server/prototypes.pike:1.280

5:   #include <config.h>   #include <module.h>   #include <module_constants.h> - constant cvs_version="$Id: prototypes.pike,v 1.279 2011/01/21 15:21:06 marty Exp $"; + constant cvs_version="$Id: prototypes.pike,v 1.280 2011/02/07 12:50:35 grubba Exp $";      #ifdef DAV_DEBUG   #define DAV_WERROR(X...) werror(X)
2121:    void register_vary_callback(string|void vary,    function(string, RequestID: string|int)|void cb)    { +  if (!(vary || cb)) { +  error("Vary: At least one of the arguments MUST be specified.\n"); +  }    // Don't generate a vary header for the Host header.    if (vary != "host") {    if (!misc->vary) {