diff src/c/urweb.c @ 464:91914c15a85b

Cookie demo code; fix error message display
author Adam Chlipala <adamc@hcoop.net>
date Thu, 06 Nov 2008 12:22:50 -0500
parents bb27c7efcd90
children 1626dcba13ee
line wrap: on
line diff
--- a/src/c/urweb.c	Thu Nov 06 12:08:41 2008 -0500
+++ b/src/c/urweb.c	Thu Nov 06 12:22:50 2008 -0500
@@ -315,17 +315,7 @@
   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) {