urbica / galton

Lightweight Node.js isochrone map server
https://galton.urbica.co
MIT License
272 stars 36 forks source link

Empty requests are fulfilled using parameters from previous request #183

Closed glifchits closed 7 years ago

glifchits commented 7 years ago

Steps to reproduce:

  1. Start a Galton server, e.g.
    docker run -d -p 4000:4000 urbica/galton "https://s3.amazonaws.com/metro-extracts.mapzen.com/moscow_russia.osm.pbf" car
  2. Make an empty request:
    $ curl http://localhost:4000 --get
    Coordinates must contain numbers
  3. Make a request with data:
    $ curl http://localhost:4000 --get --data 'lng=37.62&lat=55.75'
    {"type":"FeatureCollection","features":[{"type":"Feature","properties":{"time":10},"geometry":{"type":"Polygon","coord...
  4. Make another empty request:
    $ curl http://localhost:4000 --get
    {"type":"FeatureCollection","features":[{"type":"Feature","properties":{"time":10},"geometry":{"type":"Polygon","coord...

On step 4 I expected to see the error message Coordinates must contain numbers, but instead I got a response from the previous request.