ogcserver: use PATH_INFO to contruct the request 'onlineresource' since SCRIPT_NAME will be emtpy in a WSGI app - fixes #243 for the WSGI wrapper

This commit is contained in:
Dane Springmeyer 2009-03-31 17:18:41 +00:00
parent a7d8e7b240
commit c8340e7161

View file

@ -57,7 +57,7 @@ class WSGIApp:
reqparams = {}
for key, value in parse_qs(environ['QUERY_STRING'], True).items():
reqparams[key.lower()] = value[0]
onlineresource = 'http://%s:%s%s?' % (environ['SERVER_NAME'], environ['SERVER_PORT'], environ['SCRIPT_NAME'])
onlineresource = 'http://%s:%s%s?' % (environ['SERVER_NAME'], environ['SERVER_PORT'], environ['PATH_INFO'])
try:
if not reqparams.has_key('request'):
raise OGCException('Missing request parameter.')