From e725ba5be7d1a2f9d8ad0506930e84404a834660 Mon Sep 17 00:00:00 2001 From: Zaid Abdulla Date: Thu, 12 Jun 2014 23:52:38 +0300 Subject: [PATCH] Fixed bug where fault response triggers method not supported exception when IGNORE_XML_NAMSPACES config option is enabled. --- lib/soap.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/soap.coffee b/lib/soap.coffee index 0a222ce..b92962c 100644 --- a/lib/soap.coffee +++ b/lib/soap.coffee @@ -303,7 +303,7 @@ exports.request = (httpRequest) -> cwmpRequest.id = try xml.get('/soap-env:Envelope/soap-env:Header/cwmp:ID', NAMESPACES[cwmpRequest.cwmpVersion]).text() catch then null - if methodElement? + if methodElement? and not (config.IGNORE_XML_NAMESPACES and methodElement.name() is 'Fault') switch methodElement.name() when 'Inform' cwmpRequest.methodRequest = acsInform(methodElement)