--- parser3/src/targets/isapi/parser3isapi.C 2007/11/27 09:58:05 1.99 +++ parser3/src/targets/isapi/parser3isapi.C 2010/11/22 22:24:23 1.104 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char * const IDENT_PARSER3ISAPI_C="$Date: 2007/11/27 09:58:05 $"; +static const char * const IDENT_PARSER3ISAPI_C="$Date: 2010/11/22 22:24:23 $"; #ifndef _MSC_VER # error compile ISAPI module with MSVC [no urge for now to make it autoconf-ed (PAF)] @@ -212,10 +212,10 @@ void SAPI::add_header_attribute(SAPI_Inf if(strcasecmp(dont_store_key, "location")==0) SAPI_info.http_response_code=302; - if(strcasecmp(dont_store_key, "status")==0) + if(strcasecmp(dont_store_key, HTTP_STATUS)==0) SAPI_info.http_response_code=atoi(dont_store_value); else - (*SAPI_info.header) << pa_strdup(dont_store_key) << ": " << pa_strdup(dont_store_value) << "\r\n"; + (*SAPI_info.header) << capitalize(dont_store_key) << ": " << pa_strdup(dont_store_value) << "\r\n"; } /// @todo intelligent cache-control @@ -374,8 +374,7 @@ void real_parser_handler(SAPI_Info& SAPI // prepare to process request Request request(SAPI_info, request_info, - String::Language(String::L_HTML|String::L_OPTIMIZE_BIT), - true /* status_allowed */); + String::Language(String::L_HTML|String::L_OPTIMIZE_BIT)); // beside by binary static char beside_binary_path[MAX_STRING]; @@ -476,8 +475,8 @@ DWORD WINAPI HttpExtensionProc(LPEXTENSI // prepare header // not using SAPI func wich allocates on pool char header_buf[MAX_STRING]; int header_len=snprintf(header_buf, MAX_STRING, - "content-type: text/plain\r\n" - "content-length: %u\r\n" + HTTP_CONTENT_TYPE_CAPITALIZED ": text/plain\r\n" + HTTP_CONTENT_LENGTH_CAPITALIZED ": %u\r\n" // "expires: Fri, 23 Mar 2001 09:32:23 GMT\r\n" "\r\n", content_length); @@ -509,8 +508,8 @@ DWORD WINAPI HttpExtensionProc(LPEXTENSI // prepare header // not using SAPI func wich allocates on pool char header_buf[MAX_STRING]; int header_len=snprintf(header_buf, MAX_STRING, - "content-type: text/plain\r\n" - "content-length: %u\r\n" + HTTP_CONTENT_TYPE_CAPITALIZED ": text/plain\r\n" + HTTP_CONTENT_LENGTH_CAPITALIZED ": %u\r\n" "expires: Fri, 23 Mar 2001 09:32:23 GMT\r\n" "\r\n", content_length);