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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/c/driver.c b/src/c/driver.c
index 4c54d3ba..ac968dc9 100644
--- a/src/c/driver.c
+++ b/src/c/driver.c
@@ -188,6 +188,8 @@ static void *worker(void *data) {
printf("Serving URI %s....\n", path);
+ uw_set_headers(ctx, headers);
+
while (1) {
if (uw_db_begin(ctx)) {
printf("Error running SQL BEGIN\n");
@@ -209,7 +211,7 @@ static void *worker(void *data) {
uw_write(ctx, "<html>");
strcpy(path_copy, path);
- fk = uw_begin(ctx, headers, path_copy);
+ fk = uw_begin(ctx, path_copy);
if (fk == SUCCESS) {
uw_write(ctx, "</html>");