r-map / rmap

rete monitoraggio ambientale partecipativo documentation at https://doc.rmap.cc
https://rmap.cc
52 stars 43 forks source link

Json data returned with misleading Content-Type header #333

Closed eineki closed 3 years ago

eineki commented 3 years ago

When the Stima Wifi station embedded webserver is reached at the /data.json url, the response is served with a text/html content type instead than an application/json one.

Postman client and node-red, to make an example, does not use the data retrieved as intended without workarounds (manually parse the string retrieved)

pat1 commented 3 years ago

can you send a pull request ?