<p><b>@mmd-osm</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2065#discussion_r282103537">test/controllers/nodes_controller_test.rb</a>:</p>
<pre style='color:#555'>>      )
     assert_routing(
       { :path => "/api/0.6/node/1", :method => :delete },
-      { :controller => "nodes", :action => "delete", :id => "1" }
+      { :controller => "nodes", :action => "delete", :id => "1", :format => "xml" }
</pre>
<p>PUT and DELETE related requests in this controller (as well as in the ways and relations controller) return plain text as a response (see <a href="https://github.com/openstreetmap/openstreetmap-website/blob/master/app/controllers/api/nodes_controller.rb#L54-L62">https://github.com/openstreetmap/openstreetmap-website/blob/master/app/controllers/api/nodes_controller.rb#L54-L62</a>).</p>
<p>I have some doubts if it's correct to assume format :xml in this case, and would only do so in case the response really uses XML format. Maybe I'm missing something here, though.</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/2065#pullrequestreview-235105000">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLP3FOVOAT6VPBGLDVDPULSITANCNFSM4GD2SPQA">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAK2OLLXH4HN36WZSESJDHDPULSITA5CNFSM4GD2SPQKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOBYBWV2A.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/2065#pullrequestreview-235105000",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/2065#pullrequestreview-235105000",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>