Fixed bug where fault response triggers method not supported exception when IGNORE_XML_NAMSPACES config option is enabled.

This commit is contained in:
Zaid Abdulla committed 2014-06-12 23:52:38 +03:00
1 parent 343520f408
commit e725ba5be7
1 file changed
+1 -1
+1 -1
View File
@@ -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 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() switch methodElement.name()
when 'Inform' when 'Inform'
cwmpRequest.methodRequest = acsInform(methodElement) cwmpRequest.methodRequest = acsInform(methodElement)