<p><b>@gravitystorm</b> commented on this pull request.</p>
<hr>
<p>In <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2485#discussion_r369683192">app/controllers/api_controller.rb</a>:</p>
<pre style='color:#555'>> + 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
</pre>
<p>Ah, is because cgimap is doing this? I have different results for e.g. my own localhost, or other rails port deployments like OpenHistoricalMap</p>
<p>I think this might be where cgimap is doing so, based on the error messages:<br>
<a href="https://github.com/zerebubuth/openstreetmap-cgimap/blob/ee2d8078db851505888ddad275419066a4015cef/src/choose_formatter.cpp#L236">https://github.com/zerebubuth/openstreetmap-cgimap/blob/ee2d8078db851505888ddad275419066a4015cef/src/choose_formatter.cpp#L236</a></p>
<p>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.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2485?email_source=notifications&email_token=AAK2OLLWLTF7P3SBS2BNXQLQ7B3LVA5CNFSM4KAKS5KKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCSVPOVA#discussion_r369683192">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLK6HBOQ32FKMATS2ZTQ7B3LVANCNFSM4KAKS5KA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAK2OLNYONDJVQ4CDIKQE4DQ7B3LVA5CNFSM4KAKS5KKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCSVPOVA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/2485?email_source=notifications\u0026email_token=AAK2OLLWLTF7P3SBS2BNXQLQ7B3LVA5CNFSM4KAKS5KKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCSVPOVA#discussion_r369683192",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/2485?email_source=notifications\u0026email_token=AAK2OLLWLTF7P3SBS2BNXQLQ7B3LVA5CNFSM4KAKS5KKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCSVPOVA#discussion_r369683192",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>