Browse Source

Remove other instances of Mapzen

pull/1110/head
Julian Simioni 7 years ago
parent
commit
8bccfc4fd2
No known key found for this signature in database
GPG Key ID: B9EEB0C6EE0910A1
  1. 5
      middleware/headers.js
  2. 2
      package.json
  3. 2
      test/ciao/index.coffee

5
middleware/headers.js

@ -1,12 +1,11 @@
var pkg = require('../package'); var pkg = require('../package');
function middleware(req, res, next){ function middleware(req, res, next){
res.header('Charset','utf8'); res.header('Charset','utf8');
res.header('Cache-Control','public'); res.header('Cache-Control','public');
res.header('Server', 'Pelias/'+pkg.version); res.header('Server', 'Pelias/'+pkg.version);
res.header('X-Powered-By', 'mapzen'); res.header('X-Powered-By', 'pelias');
next(); next();
} }
module.exports = middleware; module.exports = middleware;

2
package.json

@ -1,7 +1,7 @@
{ {
"name": "pelias-api", "name": "pelias-api",
"version": "0.0.0-semantic-release", "version": "0.0.0-semantic-release",
"author": "mapzen", "author": "pelias",
"description": "Pelias API", "description": "Pelias API",
"homepage": "https://github.com/pelias/api", "homepage": "https://github.com/pelias/api",
"license": "MIT", "license": "MIT",

2
test/ciao/index.coffee

@ -19,4 +19,4 @@ response.should.have.header 'Server'
response.headers.server.should.match /Pelias\/\d{1,2}\.\d{1,2}\.\d{1,2}/ response.headers.server.should.match /Pelias\/\d{1,2}\.\d{1,2}\.\d{1,2}/
#? vanity header correctly set #? vanity header correctly set
response.should.have.header 'X-Powered-By','mapzen' response.should.have.header 'X-Powered-By','pelias'

Loading…
Cancel
Save