diff options
-rw-r--r-- | src/c/driver.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/c/driver.c b/src/c/driver.c index a9a5ce3f..df154aea 100644 --- a/src/c/driver.c +++ b/src/c/driver.c @@ -255,10 +255,11 @@ static void *worker(void *data) { uw_reset_keep_error_message(ctx); uw_write_header(ctx, "HTTP/1.1 500 Internal Server Error\r\n"); - uw_write_header(ctx, "Content-type: text/plain\r\n"); + uw_write_header(ctx, "Content-type: text/html\r\n"); + uw_write(ctx, "<html><head><title>Fatal Error</title></head><body>"); uw_write(ctx, "Fatal error: "); uw_write(ctx, uw_error_message(ctx)); - uw_write(ctx, "\n"); + uw_write(ctx, "\n</body></html>"); try_rollback(ctx); |