No need for ProxyHost to be in Format.KML directly anymore, since #1350

adds it to Ajax.Request. Thanks, rdewit. r=me (Closes #1354)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6195 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2008-02-11 02:39:01 +00:00
parent 416661ecc6
commit f42bb15716

View File

@@ -249,19 +249,12 @@ OpenLayers.Format.KML = OpenLayers.Class(OpenLayers.Format.XML, {
*
*/
fetchLink: function(href) {
if (OpenLayers.ProxyHost
&& OpenLayers.String.startsWith(href, "http")) {
href = OpenLayers.ProxyHost + escape(href);
}
var request = new OpenLayers.Ajax.Request(href,
{method: 'get', asynchronous: false });
if (request && request.transport) {
return request.transport.responseText;
}
},
/**