mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 16:06:16 -04:00
ensure server header is also send with the api functions
This commit is contained in:
parent
212cf83a25
commit
8d28fcbf23
1 changed files with 2 additions and 0 deletions
|
@ -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")
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue