From 1e09941c265802c19ab291571accd83c21183936 Mon Sep 17 00:00:00 2001 From: m0gg Date: Thu, 13 Apr 2006 06:22:29 +0000 Subject: Add missing HEADER_CONTENT_TYPE in _soap_server_send_ctx --- libcsoap/soap-server.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libcsoap/soap-server.c') diff --git a/libcsoap/soap-server.c b/libcsoap/soap-server.c index a9671e3..bf03a3d 100644 --- a/libcsoap/soap-server.c +++ b/libcsoap/soap-server.c @@ -1,5 +1,5 @@ /****************************************************************** -* $Id: soap-server.c,v 1.22 2006/03/29 08:35:55 m0gg Exp $ +* $Id: soap-server.c,v 1.23 2006/04/13 06:22:29 m0gg Exp $ * * CSOAP Project: A SOAP client/server library in C * Copyright (C) 2003 Ferhat Ayaz @@ -159,6 +159,8 @@ _soap_server_send_ctx(httpd_conn_t * conn, SoapCtx * ctx) snprintf(buflen, 100, "%d", xmlBufferLength(buffer)); httpd_set_header(conn, HEADER_CONTENT_LENGTH, buflen); + httpd_set_header(conn, HEADER_CONTENT_TYPE, "text/xml"); + if ((xpathObj->nodesetval) ? xpathObj->nodesetval->nodeNr : 0) { httpd_send_header(conn, 500, "FAILED"); -- cgit v1.1-32-gdbae