summaryrefslogtreecommitdiffstats
path: root/libcsoap/soap-client.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcsoap/soap-client.c')
-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);
}