changeset 500:581554f8e642

Fix missing initial <html> after restarts
author Adam Chlipala <adamc@hcoop.net>
date Thu, 20 Nov 2008 10:44:28 -0500
parents 12d163bb856f
children 7ef4b2911b09
files src/c/driver.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/c/driver.c	Thu Nov 20 10:41:58 2008 -0500
+++ b/src/c/driver.c	Thu Nov 20 10:44:28 2008 -0500
@@ -189,9 +189,10 @@
         printf("Serving URI %s....\n", path);
 
         uw_set_headers(ctx, headers);
-        uw_write(ctx, "<html>");
 
         while (1) {
+          uw_write(ctx, "<html>");
+
           if (uw_db_begin(ctx)) {
             printf("Error running SQL BEGIN\n");
             if (retries_left)