Kervala - 2011-06-09

Hi,

With gSOAP, mime-type is defined as application/soap+xml it could be great to add it to be able to process gSOAP messages.

Here is a patch to fix it :

--- D:/nusoap/nusoap.php    Thu Jun 09 16:30:30 2011
+++ D:/nusoap/new/nusoap_fixed.php  Thu Jun 09 17:15:37 2011
@@ -7864,8 +7864,8 @@
            $this->setError('Response not of type text/xml (no content-type header)');
            return false;
        }
-       if (!strstr($headers['content-type'], 'text/xml')) {
-           $this->setError('Response not of type text/xml: ' . $headers['content-type']);
+       if (!strstr($headers['content-type'], 'text/xml') && !strstr($headers['content-type'], 'application/soap+xml')) {
+           $this->setError('Response not of type text/xml or application/soap+xml: ' . $headers['content-type']);
            return false;
        }
        if (strpos($headers['content-type'], '=')) {