allow proxy host function, r=tschaub (closes #2128)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9586 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -128,7 +128,11 @@ OpenLayers.Request = {
|
||||
}
|
||||
}
|
||||
if(config.proxy && (url.indexOf("http") == 0)) {
|
||||
url = config.proxy + encodeURIComponent(url);
|
||||
if(typeof config.proxy == "function") {
|
||||
url = config.proxy(url);
|
||||
} else {
|
||||
url = config.proxy + encodeURIComponent(url);
|
||||
}
|
||||
}
|
||||
request.open(
|
||||
config.method, url, config.async, config.user, config.password
|
||||
|
||||
Reference in New Issue
Block a user