Skip to content

Commit

Permalink
Remove other instances of Mapzen
Browse files Browse the repository at this point in the history
  • Loading branch information
orangejulius committed Mar 26, 2018
1 parent a488cca commit 8bccfc4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions middleware/headers.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@

var pkg = require('../package');

function middleware(req, res, next){
res.header('Charset','utf8');
res.header('Cache-Control','public');
res.header('Server', 'Pelias/'+pkg.version);
res.header('X-Powered-By', 'mapzen');
res.header('X-Powered-By', 'pelias');
next();
}

module.exports = middleware;
module.exports = middleware;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "pelias-api",
"version": "0.0.0-semantic-release",
"author": "mapzen",
"author": "pelias",
"description": "Pelias API",
"homepage": "https://github.com/pelias/api",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion test/ciao/index.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ response.should.have.header 'Server'
response.headers.server.should.match /Pelias\/\d{1,2}\.\d{1,2}\.\d{1,2}/

#? vanity header correctly set
response.should.have.header 'X-Powered-By','mapzen'
response.should.have.header 'X-Powered-By','pelias'

0 comments on commit 8bccfc4

Please sign in to comment.