Fix null value type bug in simulator
This commit is contained in:
1 parent
973e82cf94
commit
53baa8dc78
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -112,7 +112,7 @@ exports.SetParameterValues = (device, xmlIn, xmlOut, callback) ->
|
||||
name = p.get('Name').text()
|
||||
value = p.get('Value')
|
||||
device[name][1] = value.text()
|
||||
device[name][2] = value.attr('xsi:type')
|
||||
device[name][2] = value.attr('type').value()
|
||||
|
||||
responseNode = xmlOut.root().childNodes()[1].node('cwmp:SetParameterValuesResponse')
|
||||
responseNode.node('Status', '0')
|
||||
|
||||
+1
-1
@@ -91,7 +91,7 @@ sendRequest = (device,xml, callback) ->
|
||||
|
||||
if response.headers['set-cookie']?
|
||||
# TODO set individual cookies
|
||||
device['Cookies'] = [true, response.headers['set-cookie'], 'string']
|
||||
device['Cookies'] = [true, response.headers['set-cookie'], 'xsd:string']
|
||||
|
||||
callback(xml)
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user