--- parser3/src/targets/cgi/parser3.C 2002/10/15 10:05:01 1.198 +++ parser3/src/targets/cgi/parser3.C 2002/11/20 09:44:44 1.200 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char* IDENT_PARSER3_C="$Date: 2002/10/15 10:05:01 $"; +static const char* IDENT_PARSER3_C="$Date: 2002/11/20 09:44:44 $"; #include "pa_config_includes.h" @@ -170,7 +170,7 @@ const char *const *SAPI::environment(Poo size_t SAPI::read_post(Pool& , char *buf, size_t max_bytes) { size_t read_size=0; do { - int chunk_size=read(fileno(stdin), + ssize_t chunk_size=read(fileno(stdin), buf+read_size, min(READ_POST_CHUNK_SIZE, max_bytes-read_size)); if(chunk_size<=0) break; @@ -288,7 +288,6 @@ static void real_parser_handler( 0, "CGI: no PATH_INFO defined(in reinventing REQUEST_URI)"); -#ifndef WIN32 // they've changed this under IIS5. if(const char *script_name=SAPI::get_env(request_pool, "SCRIPT_NAME")) { size_t script_name_len=strlen(script_name); @@ -297,7 +296,6 @@ static void real_parser_handler( script_name_len != uri_len) // under IIS they are the same SAPI::die("CGI: illegal call"); } -#endif } else request_info.uri="";