fix issue with newline in APIKEY.txt when checking api key

This commit is contained in:
Alexandre Girard 2011-11-21 16:39:54 +01:00
parent 55a2f46ca9
commit 90e9d552f0
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ var functions = {
exports.handle = function(functionName, fields, req, res)
{
//check the api key!
if(fields["apikey"] != apikey)
if(fields["apikey"] != apikey.trim())
{
res.send({code: 4, message: "no or wrong API Key", data: null});
return;