diff options
author | Adam Chlipala <adamc@hcoop.net> | 2008-11-06 10:04:03 -0500 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2008-11-06 10:04:03 -0500 |
commit | 52bcb1e926570966efe93672e968999f4f2e14f8 (patch) | |
tree | b2e3cbca76f43dc34740426f96e20b4817e85727 /src/c/driver.c | |
parent | 027f68ea322f9a52c3440a8d88be8d924b5c0395 (diff) |
Avoid allocating strings for requestHeader
Diffstat (limited to 'src/c/driver.c')
-rw-r--r-- | src/c/driver.c | 4 |
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>"); |