--- parser3/src/main/pa_request.C 2019/11/22 22:37:30 1.378 +++ parser3/src/main/pa_request.C 2020/10/12 20:57:08 1.380 @@ -33,7 +33,7 @@ #include "pa_vconsole.h" #include "pa_vdate.h" -volatile const char * IDENT_PA_REQUEST_C="$Id: pa_request.C,v 1.378 2019/11/22 22:37:30 moko Exp $" IDENT_PA_REQUEST_H IDENT_PA_REQUEST_CHARSETS_H IDENT_PA_REQUEST_INFO_H IDENT_PA_VCONSOLE_H; +volatile const char * IDENT_PA_REQUEST_C="$Id: pa_request.C,v 1.380 2020/10/12 20:57:08 moko Exp $" IDENT_PA_REQUEST_H IDENT_PA_REQUEST_CHARSETS_H IDENT_PA_REQUEST_INFO_H IDENT_PA_VCONSOLE_H; // consts @@ -563,10 +563,8 @@ void Request::core(const char* config_fi } catch(const Exception& e) { // exception in unhandled exception Request::Exception_details details=get_details(e); const char* exception_cstr=get_exception_cstr(e, details); - // unconditionally log the beast - SAPI::log(sapi_info, "%s", exception_cstr); - - throw Exception(0, 0, "in %s", exception_cstr); + // unconditionally log the beast in exception handler + throw Exception(0, 0, "Unhandled exception in %s", exception_cstr); } } } @@ -831,7 +829,7 @@ static void output_pieces(Request& r, bo size_t size = 0; do{ to_read = part_length < BUFSIZE ? part_length : BUFSIZE; - File_read_result read_result=file_read(r.charsets, filespec, false /*as text*/, 0/*params*/, true/*fail on problem*/, buf, offset, to_read); + File_read_result read_result=file_read_binary(filespec, true /*fail on problem*/, buf, offset, to_read); to_read=read_result.length; if(to_read == 0) break;