Fixed bug where deleting a device doesn't work if device ID contains URL encoded characters.
This commit is contained in:
1 parent
b3ef66a581
commit
7d3618a480
1 file changed
+1
-1
+1
-1
@@ -316,7 +316,7 @@ listener = (request, response) ->
|
||||
response.end('405 Method Not Allowed')
|
||||
return
|
||||
|
||||
deviceId = DELETE_DEVICE_REGEX.exec(urlParts.pathname)[1]
|
||||
deviceId = querystring.unescape(DELETE_DEVICE_REGEX.exec(urlParts.pathname)[1])
|
||||
apiFunctions.deleteDevice(deviceId, (err) ->
|
||||
if err
|
||||
response.writeHead(500)
|
||||
|
||||
Reference in new issue
Block a user