diff options
author | Adam Chlipala <adamc@hcoop.net> | 2008-11-06 11:29:16 -0500 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2008-11-06 11:29:16 -0500 |
commit | bfad3d26b4471c93b92d41c894e25919fd7bf953 (patch) | |
tree | 05a8c82978b8d58211cd4b05357cccecd0dd9fb7 /src/c/driver.c | |
parent | 59e90f80efd94c738df349da7d473da9a8a7e81a (diff) |
Setting a cookie
Diffstat (limited to 'src/c/driver.c')
-rw-r--r-- | src/c/driver.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/c/driver.c b/src/c/driver.c index ac968dc9..438adb8d 100644 --- a/src/c/driver.c +++ b/src/c/driver.c @@ -206,15 +206,12 @@ static void *worker(void *data) { } } - uw_write(ctx, "HTTP/1.1 200 OK\r\n"); - uw_write(ctx, "Content-type: text/html\r\n\r\n"); - uw_write(ctx, "<html>"); + uw_write_header(ctx, "HTTP/1.1 200 OK\r\n"); + uw_write_header(ctx, "Content-type: text/html\r\n"); strcpy(path_copy, path); fk = uw_begin(ctx, path_copy); if (fk == SUCCESS) { - uw_write(ctx, "</html>"); - if (uw_db_commit(ctx)) { fk = FATAL; |