--- parser3/src/targets/cgi/parser3.C 2001/05/24 09:29:52 1.90 +++ parser3/src/targets/cgi/parser3.C 2001/08/24 09:27:53 1.96 @@ -4,9 +4,8 @@ Copyright(c) 2001 ArtLebedev Group(http://www.artlebedev.com) Author: Alexander Petrosyan (http://design.ru/paf) - - $Id: parser3.C,v 1.90 2001/05/24 09:29:52 parser Exp $ */ +static const char *RCSId="$Id: parser3.C,v 1.96 2001/08/24 09:27:53 parser Exp $"; #include "pa_config_includes.h" @@ -257,7 +256,7 @@ int main(int argc, char *argv[]) { // prepare to process request Request request(pool, request_info, - cgi||1 ? String::UL_USER_HTML : String::UL_AS_IS + cgi ? String::UL_USER_HTML : String::UL_AS_IS ); // some root-controlled location @@ -298,6 +297,10 @@ int main(int argc, char *argv[]) { #ifdef WIN32 SetUnhandledExceptionFilter(0); #endif + // + if(!cgi) + SAPI::send_body(pool, "\n", 1); + // successful finish return 0; } PCATCH(e) { // global problem @@ -329,6 +332,10 @@ int main(int argc, char *argv[]) { if(!header_only) SAPI::send_body(pool, body, content_length); + // + if(!cgi) + SAPI::send_body(pool, "\n", 1); + // unsuccessful finish return 1; }