summaryrefslogtreecommitdiff
path: root/src/c/driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/c/driver.c')
-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)