nhttpd: disable range handling for cached content

This commit is contained in:
martii
2014-09-23 11:45:59 +02:00
committed by svenhoefer
parent 7ff097d842
commit ee1ab08bd4
4 changed files with 20 additions and 16 deletions

View File

@@ -124,27 +124,28 @@ protected:
static THookList HookList;
public:
// Output
std::string yresult; // content for response output
THandleStatus status; // status of Hook handling
std::string yresult; // content for response output
THandleStatus status; // status of Hook handling
HttpResponseType httpStatus; // http-status code for response
std::string ResponseMimeType; // mime-type for response
std::string NewURL; // new URL for Redirection
off_t ContentLength; // Length of Response Body
off_t RangeStart; // Start of range, used for sendfile only
off_t RangeEnd; // End of range, used for sendfile only
time_t LastModified; // Last Modified Time of Item to send / -1 dynamic content
std::string Sendfile; // Path & Name (local os style) of file to send
std::string NewURL; // new URL for Redirection
off_t ContentLength; // Length of Response Body
off_t RangeStart; // Start of range, used for sendfile only
off_t RangeEnd; // End of range, used for sendfile only
time_t LastModified; // Last Modified Time of Item to send / -1 dynamic content
std::string Sendfile; // Path & Name (local os style) of file to send
bool keep_alive;
bool cached; // cached by mod_cache
// Input
CStringList ParamList; // local copy of ParamList (Request)
CStringList UrlData; // local copy of UrlData (Request)
CStringList HeaderList; // local copy of HeaderList (Request)
CStringList WebserverConfigList;// Reference (writable) to ConfigList
CStringList ParamList; // local copy of ParamList (Request)
CStringList UrlData; // local copy of UrlData (Request)
CStringList HeaderList; // local copy of HeaderList (Request)
CStringList WebserverConfigList; // Reference (writable) to ConfigList
CStringList HookVarList; // Variables in Hook-Handling passing to other Hooks
THttp_Method Method; // HTTP Method (requested)
THttp_Method Method; // HTTP Method (requested)
// constructor & deconstructor
CyhookHandler(){ContentLength = 0; RangeStart = 0; RangeEnd = -1; keep_alive = 0; _outIndent = 0;status = HANDLED_NONE;Method = M_UNKNOWN;httpStatus = HTTP_NIL;outType = plain;};
CyhookHandler(){ContentLength = 0; RangeStart = 0; RangeEnd = -1; cached = false; keep_alive = 0; _outIndent = 0;status = HANDLED_NONE;Method = M_UNKNOWN;httpStatus = HTTP_NIL;outType = plain;};
virtual ~CyhookHandler(){};
// hook slot handler