This commit is contained in:
Andy Gup 2016-05-11 11:50:55 -06:00
parent 27335b85b2
commit 1291c932b0

View File

@ -2040,8 +2040,11 @@ define([
} }
} }
// Respect the proxyPath if one has been set (Added at v3.2.0)
var url = this.proxyPath ? this.proxyPath + "?" + layer.url : layer.url;
var req = new XMLHttpRequest(); var req = new XMLHttpRequest();
req.open("POST", layer.url + "/applyEdits", true); req.open("POST", url + "/applyEdits", true);
req.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); req.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
req.onload = function() req.onload = function()
{ {