Fixed 404 error when deleting/retrying a task caused by recent change in node's implementation of querystring.unescape.

This commit is contained in:
Zaid Abdulla committed 2014-11-22 19:11:54 +03:00
1 parent dd6b2a449e
commit 5b60416a3e
1 file changed
+1 -1
+1 -1
View File
@@ -244,7 +244,7 @@ listener = (request, response) ->
else if TASKS_REGEX.test(urlParts.pathname)
r = TASKS_REGEX.exec(urlParts.pathname)
taskId = mongodb.ObjectID(querystring.unescape(r[1]))
action = try querystring.unescape(r[2])
action = r[2]
if not action? or action is '/'
if request.method == 'DELETE'
db.tasksCollection.remove({'_id' : taskId}, (err, removedCount) ->