Browse Source

feat: Merge pull request #1110 from pelias/mapzen-cleanup

Mapzen cleanup
pull/1094/merge
Julian Simioni 7 years ago committed by GitHub
parent
commit
cf1912efb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      middleware/headers.js
  2. 2
      package.json
  3. 2
      public/attribution.md
  4. 2
      test/ciao/index.coffee

5
middleware/headers.js

@ -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
package.json

@ -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",

2
public/attribution.md

@ -1,5 +1,5 @@
## Attribution
* Geocoding by [Pelias](https://mapzen.com/pelias) from [Mapzen](https://mapzen.com)
* Geocoding by [Pelias](https://pelias.io).
* Data from
* [OpenStreetMap](http://www.openstreetmap.org/copyright) © OpenStreetMap contributors under [ODbL](http://opendatacommons.org/licenses/odbl/)
* [OpenAddresses](http://openaddresses.io) under a [Creative Commons Zero](https://github.com/openaddresses/openaddresses/blob/master/sources/LICENSE) public domain designation

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}/
#? vanity header correctly set
response.should.have.header 'X-Powered-By','mapzen'
response.should.have.header 'X-Powered-By','pelias'

Loading…
Cancel
Save