Branch: Tag:

2008-01-16

2008-01-16 13:07:00 by Stefan Wallström <stewa@roxen.com>

New define DISABLE_BYTE_RANGES to disable the Accept-Ranges header

Rev: server/base_server/prototypes.pike:1.204

6:   #include <module.h>   #include <variables.h>   #include <module_constants.h> - constant cvs_version="$Id: prototypes.pike,v 1.203 2008/01/11 08:25:00 mast Exp $"; + constant cvs_version="$Id: prototypes.pike,v 1.204 2008/01/16 13:07:00 stewa Exp $";      #ifdef DAV_DEBUG   #define DAV_WERROR(X...) werror(X)
2146:    heads["Content-Type"] = file->type + charset;       + #ifndef DISABLE_BYTE_RANGES    heads["Accept-Ranges"] = "bytes"; -  + #endif    heads["Server"] = replace(roxenp()->version(), " ", "_");    if (file->error == 500) {    // Internal server error.