From 8d28fcbf23ef7635adb7bfc77348527613c13a8b Mon Sep 17 00:00:00 2001 From: Peter 'Pita' Martischka Date: Mon, 8 Aug 2011 17:34:51 +0100 Subject: [PATCH] ensure server header is also send with the api functions --- node/server.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/node/server.js b/node/server.js index cea64690e..aab3cda5b 100644 --- a/node/server.js +++ b/node/server.js @@ -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") {