Firmware upgrade now functional

This commit is contained in:
Zaid Abdulla committed 2013-02-22 22:37:51 +03:00
1 parent e15f42a531
commit 39a5ff8a9a
5 files changed
+123 -107

No files matched your search

+1 -1
View File
@@ -222,7 +222,7 @@ exports.response = (id, cwmpResponse, cookies = null) ->
if cookies? and Object.keys(cookies).length > 0
headers['Set-Cookie'] = cookiesToStr(cookies)
if cwmpResponse is null or Object.keys(cwmpResponse).length == 0
if not cwmpResponse? or Object.keys(cwmpResponse).length == 0
#console.log '>>> EMPTY RESPONSE'
# send empty response
headers['Content-Length'] = 0