Set 'Content-Type': 'text/xml' when closing changeset (closes #2874)

Not sure exactly why this matters only on OSM.org, only for IE,
and only on this PUT call with no content, but it seems to fix the issue.
This commit is contained in:
Bryan Housel
2015-12-12 12:06:59 -08:00
parent 534ddecccf
commit 879480263c
+2 -1
View File
@@ -286,7 +286,8 @@ iD.Connection = function(useHttps) {
window.setTimeout(function() { callback(null, changeset_id); }, 2500);
oauth.xhr({
method: 'PUT',
path: '/api/0.6/changeset/' + changeset_id + '/close'
path: '/api/0.6/changeset/' + changeset_id + '/close',
options: { header: { 'Content-Type': 'text/xml' } },
}, d3.functor(true));
});
});