summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-11-20 10:44:28 -0500
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-11-20 10:44:28 -0500
commit55ad38ebb900b84fcfdeefe68678348e1cd3c36c (patch)
tree87917041073b5cab1872b39ca07b173499f6d02f /src
parent20d637f0f45e8402ce958bd6f00a0fe7237fd851 (diff)
Fix missing initial <html> after restarts
Diffstat (limited to 'src')
-rw-r--r--src/c/driver.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/c/driver.c b/src/c/driver.c
index 49537614..f80361b1 100644
--- a/src/c/driver.c
+++ b/src/c/driver.c
@@ -189,9 +189,10 @@ static void *worker(void *data) {
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)