From 53ffd147bd15577ba87f7bef7db66d592066ed27 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 20 Jul 2005 05:40:51 +0000 Subject: [PATCH] r8632: use
 around displayed exceptions (This used to be
 commit 001917cc9dec4bdf8839ef175edad352b2763239)

---
 source4/web_server/http.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/source4/web_server/http.c b/source4/web_server/http.c
index c2e9042d4a3..e7d5c399ce7 100644
--- a/source4/web_server/http.c
+++ b/source4/web_server/http.c
@@ -185,7 +185,7 @@ static int http_mapToStorage(EspHandle handle, char *path, int len, const char *
 /*
   called when esp wants to output something
 */
-static int http_writeBlock(EspHandle handle, char *buf, int size)
+static int http_writeBlock(EspHandle handle, const char *buf, int size)
 {
 	struct websrv_context *web = talloc_get_type(handle, struct websrv_context);
 	NTSTATUS status;
@@ -503,7 +503,9 @@ static void esp_request(struct esp_state *esp, const char *url)
 #endif
 	res = espProcessRequest(esp->req, url, buf, &emsg);
 	if (res != 0 && emsg) {
+		http_writeBlock(web, "
", 5);
 		http_writeBlock(web, emsg, strlen(emsg));
+		http_writeBlock(web, "
", 6); } talloc_free(buf); } -- 2.34.1