From 69f06802ca71066517525c1859331a20801b7b4a Mon Sep 17 00:00:00 2001 From: crschmidt Date: Tue, 23 May 2006 16:33:07 +0000 Subject: [PATCH] More better error handling git-svn-id: http://svn.openlayers.org/trunk/openlayers@286 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- examples/proxy.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/proxy.cgi b/examples/proxy.cgi index d5cce261d0..77feaa7298 100755 --- a/examples/proxy.cgi +++ b/examples/proxy.cgi @@ -19,9 +19,9 @@ fs = cgi.FieldStorage() url = fs.getvalue('url', "http://openlayers.org") allowedHosts = ['www.openlayers.org', 'openlayers.org', 'octo.metacarta.com'] -host = url.split("/")[2] try: + host = url.split("/")[2] if allowedHosts and not host in allowedHosts: print "Status: 502 Bad Gateway" print "Content-Type: text/plain"