diff options
author | 2008-11-06 11:29:16 -0500 | |
---|---|---|
committer | 2008-11-06 11:29:16 -0500 | |
commit | 09d844ebdc60010b6b19d1833c213bcbba035515 (patch) | |
tree | 05a8c82978b8d58211cd4b05357cccecd0dd9fb7 /src/c/driver.c | |
parent | 6b020742f893fed869a9473680271b6a68e1ce09 (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; |