ensure server header is also send with the api functions

This commit is contained in:
Peter 'Pita' Martischka 2011-08-08 17:34:51 +01:00
parent 212cf83a25
commit 8d28fcbf23
1 changed files with 2 additions and 0 deletions

View File

@ -243,6 +243,8 @@ async.waterfall([
//This is a api call, collect all post informations and pass it to the apiHandler
app.all('/api/1/:func', function(req, res)
{
res.header("Server", serverName);
//check if this is a post request
if(req.method == "POST")
{