version 1.313, 2002/10/28 10:16:28
|
version 1.314, 2002/10/28 15:18:26
|
Line 1406 static int terminate_handler (HTRequest
|
Line 1406 static int terminate_handler (HTRequest
|
me->error_html == TRUE) |
me->error_html == TRUE) |
/* there were some errors and we want to print them */ |
/* there were some errors and we want to print them */ |
{ |
{ |
if (me->error_stream_size == 0)/* and the stream is empty */ |
/* if the transfer was interrupted, the file may not be |
{ |
empty. So, we erase it */ |
/* if the transfer was interrupted, the file may not be |
fflush (me->output); |
empty. So, we erase it */ |
rewind (me->output); |
fflush (me->output); |
|
rewind (me->output); |
|
AHTError_MemPrint (request); /* copy errors from |
|
**the error stack |
|
** into the error stream */ |
|
} |
|
if (me->error_stream) |
if (me->error_stream) |
{ /* if the stream is non-empty */ |
{ /* if the stream is non-empty */ |
fprintf (me->output, "%s", me->error_stream);/* output the errors */ |
fprintf (me->output, "%s", me->error_stream);/* output the errors */ |
Line 1427 static int terminate_handler (HTRequest
|
Line 1422 static int terminate_handler (HTRequest
|
} |
} |
} /* if error_stack */ |
} /* if error_stack */ |
} |
} |
|
|
/* if != HT_ABORT */ |
/* if != HT_ABORT */ |
|
|
#ifdef DEBUG_LIBWWW |
#ifdef DEBUG_LIBWWW |