<p><b>@mmd-osm</b> commented on this pull request.</p>
<hr>
<p>In <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2485#discussion_r362032308">app/controllers/api/map_controller.rb</a>:</p>
<pre style='color:#555'>> @@ -5,6 +5,13 @@ class MapController < ApiController
before_action :check_api_readable
around_action :api_call_handle_error, :api_call_timeout
+ before_action :default_format_xml
+
+ # Set format to xml unless client requires a specific format
+ def default_format_xml
</pre>
<p>Yup, moved that one to the api_controller for now.</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=AAK2OLJFC25EBNO2CY33TH3Q3IOQJA5CNFSM4KAKS5KKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCQMLAPY#discussion_r362032308">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLLXORK3NAFVLD6JO5LQ3IOQJANCNFSM4KAKS5KA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAK2OLOKF2OSQS5F3TWOX5TQ3IOQJA5CNFSM4KAKS5KKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCQMLAPY.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=AAK2OLJFC25EBNO2CY33TH3Q3IOQJA5CNFSM4KAKS5KKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCQMLAPY#discussion_r362032308",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/2485?email_source=notifications\u0026email_token=AAK2OLJFC25EBNO2CY33TH3Q3IOQJA5CNFSM4KAKS5KKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCQMLAPY#discussion_r362032308",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>