Fixed bug where fault response triggers method not supported exception when IGNORE_XML_NAMSPACES config option is enabled.
This commit is contained in:
1 parent
343520f408
commit
e725ba5be7
1 file changed
+1
-1
+1
-1
@@ -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)
|
||||||
|
|||||||
Reference in new issue
Block a user