--- parser3/src/targets/cgi/parser3.C 2001/03/18 16:32:26 1.20 +++ parser3/src/targets/cgi/parser3.C 2001/03/18 20:32:53 1.22 @@ -3,7 +3,7 @@ Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) Author: Alexander Petrosyan (http://design.ru/paf) - $Id: parser3.C,v 1.20 2001/03/18 16:32:26 paf Exp $ + $Id: parser3.C,v 1.22 2001/03/18 20:32:53 paf Exp $ */ #ifdef HAVE_CONFIG_H @@ -150,6 +150,7 @@ int main(int argc, char *argv[]) { request_info.content_type=getenv("CONTENT_TYPE"); const char *content_length=getenv("CONTENT_LENGTH"); request_info.content_length=(content_length?atoi(content_length):0); + request_info.cookie=getenv("HTTP_COOKIE"); // prepare to process request Request request(Pool(), @@ -183,7 +184,7 @@ int main(int argc, char *argv[]) { // request.exception not not handled here, but all // request' data are associated with it's pool=exception - // must be last in PTRY{}PCATCH + // must be last in PTRY{}PCATCH #ifdef WIN32 # if _MSC_VER SetUnhandledExceptionFilter(0); @@ -192,11 +193,6 @@ int main(int argc, char *argv[]) { return 0; #endif } PCATCH(e) { // global problem - // @globals fill - // @Request create - // @prepare to .core() - // @request.core when reporting request exception - // @write result const char *body=e.comment(); int content_length=strlen(body);