diff options
author | Adam Chlipala <adamc@hcoop.net> | 2008-11-20 10:44:28 -0500 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2008-11-20 10:44:28 -0500 |
commit | 7b09fa2aca2982038889f960e51d7b1e91a70991 (patch) | |
tree | 87917041073b5cab1872b39ca07b173499f6d02f /src | |
parent | 3bbe239dcdcb4ef91dd35ccf369160e103d04f56 (diff) |
Fix missing initial <html> after restarts
Diffstat (limited to 'src')
-rw-r--r-- | src/c/driver.c | 3 |
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) |