From a488cca83481b938cb2c621395755e2df2fad7b3 Mon Sep 17 00:00:00 2001 From: Julian Simioni Date: Mon, 26 Mar 2018 10:36:01 -0400 Subject: [PATCH 1/2] Update Pelias attribution URL Connects https://github.com/pelias/pelias/issues/703 --- public/attribution.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/attribution.md b/public/attribution.md index 009450f6..f2b34bd3 100644 --- a/public/attribution.md +++ b/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 From 8bccfc4fd2a5a25b2286c368cd776f15141e5043 Mon Sep 17 00:00:00 2001 From: Julian Simioni Date: Mon, 26 Mar 2018 10:39:16 -0400 Subject: [PATCH 2/2] Remove other instances of Mapzen --- middleware/headers.js | 5 ++--- package.json | 2 +- test/ciao/index.coffee | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/middleware/headers.js b/middleware/headers.js index a747be33..52bdffc9 100644 --- a/middleware/headers.js +++ b/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; \ No newline at end of file +module.exports = middleware; diff --git a/package.json b/package.json index 7be0cb3e..aa7939b1 100644 --- a/package.json +++ b/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", diff --git a/test/ciao/index.coffee b/test/ciao/index.coffee index aac96fd9..add01625 100644 --- a/test/ciao/index.coffee +++ b/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'