[openstreetmap/openstreetmap-website] JSON output nodes, ways, relations, map (#2485)
Andy Allan
notifications at github.com
Wed Jan 22 16:58:34 UTC 2020
gravitystorm commented on this pull request.
> + if mime.symbol == :xml
+ request.format = "xml"
+ break
+ end
+
+ if mime.symbol == :json
+ request.format = "json"
+ break
+ end
+
+ # Any format, not explicitly requesting XML or JSON -> assume XML as default
+ if mime == "*/*"
+ request.format = "xml"
+ break
+ end
+ end
Ah, is because cgimap is doing this? I have different results for e.g. my own localhost, or other rails port deployments like OpenHistoricalMap
I think this might be where cgimap is doing so, based on the error messages:
https://github.com/zerebubuth/openstreetmap-cgimap/blob/ee2d8078db851505888ddad275419066a4015cef/src/choose_formatter.cpp#L236
So it is a change in behaviour for the rails port, but given that cgimap already does it's own thing here, it's less of an issue.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/2485#discussion_r369683192
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20200122/929fbb8b/attachment.htm>
More information about the rails-dev
mailing list