From 416661ecc61db071c4580a9ed01561324d5fa5af Mon Sep 17 00:00:00 2001 From: crschmidt Date: Mon, 11 Feb 2008 00:28:42 +0000 Subject: [PATCH] Apply patch from rdewit to fix a typo I missed; thx rdewit. (Closes #1350) git-svn-id: http://svn.openlayers.org/trunk/openlayers@6190 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Ajax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/OpenLayers/Ajax.js b/lib/OpenLayers/Ajax.js index 4f2e7b9aae..8eee0b9742 100644 --- a/lib/OpenLayers/Ajax.js +++ b/lib/OpenLayers/Ajax.js @@ -283,7 +283,7 @@ OpenLayers.Ajax.Request = OpenLayers.Class(OpenLayers.Ajax.Base, { initialize: function(url, options) { OpenLayers.Ajax.Base.prototype.initialize.apply(this, [options]); - if (OpenLayers.ProxyHost && OpenLayers.String.startsWith(uri, "http")) { + if (OpenLayers.ProxyHost && OpenLayers.String.startsWith(url, "http")) { url = OpenLayers.ProxyHost + encodeURIComponent(url); }