Mercurial > urweb
diff src/c/driver.c @ 462:21bb5bbba2e9
Setting a cookie
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Thu, 06 Nov 2008 11:29:16 -0500 |
parents | 8f65b0fa3b29 |
children | 91914c15a85b |
line wrap: on
line diff
--- a/src/c/driver.c Thu Nov 06 10:48:02 2008 -0500 +++ b/src/c/driver.c Thu Nov 06 11:29:16 2008 -0500 @@ -206,15 +206,12 @@ } } - 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;