mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-20 23:44:47 +02:00
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:
@@ -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));
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user