Fixed major bug caused by having request variables in the global scope. Add ability to sepecify devices for which requests/responses will be dumped to file.
This commit is contained in:
1 parent
ece1289ff8
commit
5b7e937cd8
3 files changed
+47
-57
No files matched your search
+2
-2
@@ -38,10 +38,10 @@ sessionId = (xml) ->
|
||||
|
||||
|
||||
deviceId = (xml) ->
|
||||
e = xml.find('//soap-env:Envelope/soap-env:Body/cwmp:Inform/DeviceId/child::*', NAMESPACES)
|
||||
e = xml.get('//soap-env:Envelope/soap-env:Body/cwmp:Inform/DeviceId', NAMESPACES)
|
||||
if e?
|
||||
id = {}
|
||||
for n in e
|
||||
for n in e.find('//child::*')
|
||||
id[n.name()] = trim(n.text())
|
||||
return id
|
||||
return undefined
|
||||
|
||||
Reference in new issue
Block a user