mirror of https://github.com/pelias/api.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
598 B
22 lines
598 B
|
|
#> api root |
|
path: '/' |
|
|
|
#? endpoint available |
|
response.statusCode.should.equal 200 |
|
|
|
#? content-type header correctly set |
|
response.should.have.header 'Content-Type','text/html; charset=utf-8' |
|
|
|
#? charset header correctly set |
|
response.should.have.header 'Charset','utf8' |
|
|
|
#? cache-control header correctly set |
|
response.should.have.header 'Cache-Control','public,max-age=60' |
|
|
|
#? server header correctly set |
|
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'
|
|
|