diff options
author | Adam Chlipala <adamc@hcoop.net> | 2008-11-06 12:22:50 -0500 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2008-11-06 12:22:50 -0500 |
commit | 6c3a51281f4140589e1b7dfb01b17b6ee38cb4bc (patch) | |
tree | f912371c11c979cbede6963adb21a3fe2318623b /src/c/urweb.c | |
parent | 9f6397d0f801f6e020aa6123f14ddc44e11deee7 (diff) |
Cookie demo code; fix error message display
Diffstat (limited to 'src/c/urweb.c')
-rw-r--r-- | src/c/urweb.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/c/urweb.c b/src/c/urweb.c index be12c5ea..cc21c558 100644 --- a/src/c/urweb.c +++ b/src/c/urweb.c @@ -315,17 +315,7 @@ int uw_send(uw_context ctx, int sock) { if (n < 0) return n; - n = uw_really_send(sock, "<html>", 6); - - if (n < 0) - return n; - - n = uw_really_send(sock, ctx->page, ctx->page_front - ctx->page); - - if (n < 0) - return n; - - return uw_really_send(sock, "</html>", 7); + return uw_really_send(sock, ctx->page, ctx->page_front - ctx->page); } static void uw_check_headers(uw_context ctx, size_t extra) { |