From 879480263c8c2d8ad69217f094d5a49dedabc078 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Sat, 12 Dec 2015 12:06:59 -0800 Subject: [PATCH] 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. --- js/id/core/connection.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/id/core/connection.js b/js/id/core/connection.js index 985d9e019..beaffc61d 100644 --- a/js/id/core/connection.js +++ b/js/id/core/connection.js @@ -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)); }); });