summaryrefslogtreecommitdiffstats
path: root/libcsoap
diff options
context:
space:
mode:
authorGravatar m0gg2006-04-13 06:22:29 +0000
committerGravatar m0gg2006-04-13 06:22:29 +0000
commit1e09941c265802c19ab291571accd83c21183936 (patch)
treee7f95e3fdd59109adb68407d7497a6cb1d95c872 /libcsoap
parent0f1527a77a324d67f33ebdc9cc2c4e803627ddbc (diff)
downloadcsoap-1e09941c265802c19ab291571accd83c21183936.tar.gz
csoap-1e09941c265802c19ab291571accd83c21183936.tar.bz2
Add missing HEADER_CONTENT_TYPE in _soap_server_send_ctx
Diffstat (limited to 'libcsoap')
-rw-r--r--libcsoap/soap-server.c4
1 files changed, 3 insertions, 1 deletions
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");