1 parent
3f72bdd84b
commit
549f4f0323
1 file changed
+3
-1
+3
-1
@@ -463,7 +463,9 @@ function request(httpRequest, cwmpVersion, warn) {
|
||||
}
|
||||
}
|
||||
|
||||
rpc.id = xml.get("/soap-env:Envelope/soap-env:Header/cwmp:ID", NAMESPACES[rpc.cwmpVersion]).text();
|
||||
let idElement = xml.get("/soap-env:Envelope/soap-env:Header/cwmp:ID", NAMESPACES[rpc.cwmpVersion]);
|
||||
if (idElement)
|
||||
rpc.id = idElement.text();
|
||||
|
||||
if (methodElement && !(XML_IGNORE_NAMESPACE && methodElement.name() === "Fault")) {
|
||||
switch (methodElement.name()) {
|
||||
|
||||
Reference in new issue
Block a user