From d824d15c28b02d8a26cf8c4bf584f31515270bc3 Mon Sep 17 00:00:00 2001 From: Harish Krishnaswamy Date: Fri, 9 Jan 2004 16:05:57 +0000 Subject: [PATCH] added code to soup_soap_response_from_string to ignore header element while forming response objects, if they are present. --- libsoup/soup-soap-response.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libsoup/soup-soap-response.c b/libsoup/soup-soap-response.c index 478f539..a537a6c 100644 --- a/libsoup/soup-soap-response.c +++ b/libsoup/soup-soap-response.c @@ -174,6 +174,8 @@ soup_soap_response_from_string (SoupSoapResponse *response, const char *xmlstr) if (xml_root->xmlChildrenNode != NULL) { xml_body = xml_root->xmlChildrenNode; + if (strcmp (xml_body->name, "Header") == 0) + xml_body = xml_root->xmlChildrenNode->next; if (strcmp (xml_body->name, "Body") != 0) { xmlFreeDoc (response->priv->xmldoc); response->priv->xmldoc = old_doc; -- 2.7.4