summaryrefslogtreecommitdiffstats
path: root/libcsoap
diff options
context:
space:
mode:
authorGravatar snowdrop2004-04-14 09:20:36 +0000
committerGravatar snowdrop2004-04-14 09:20:36 +0000
commit4a4c380d861601dba7d532d1b5820c71839e7062 (patch)
treebf696f849ea29a4309a11d624734a9b3724307ea /libcsoap
parent2dcbad79f0c1324c7c2ef68afab22884c083d97b (diff)
downloadcsoap-4a4c380d861601dba7d532d1b5820c71839e7062.tar.gz
csoap-4a4c380d861601dba7d532d1b5820c71839e7062.tar.bz2
added content-type text/xml as default in soap_client_invoke()
Diffstat (limited to 'libcsoap')
-rw-r--r--libcsoap/soap-client.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libcsoap/soap-client.c b/libcsoap/soap-client.c
index 39b001d..f7e4536 100644
--- a/libcsoap/soap-client.c
+++ b/libcsoap/soap-client.c
@@ -1,5 +1,5 @@
/******************************************************************
- * $Id: soap-client.c,v 1.2 2004/02/03 08:59:22 snowdrop Exp $
+ * $Id: soap-client.c,v 1.3 2004/04/14 09:20:36 snowdrop Exp $
*
* CSOAP Project: A SOAP client/server library in C
* Copyright (C) 2003 Ferhat Ayaz
@@ -51,6 +51,10 @@ soap_client_invoke(SoapEnv *call, const char *url, const char *soap_action)
/* Transport via HTTP */
conn = httpc_new();
+
+ /* content-type is always 'text/xml' */
+ httpc_set_header(conn, HEADER_CONTENT_TYPE, "text/xml");
+
if (soap_action != NULL) {
httpc_set_header(conn, "SoapAction", soap_action);
}