ogcserver: Fix syntax errors accidentally introduced in r986 - patch from rcoup (closes #256)

This commit is contained in:
Dane Springmeyer 2009-03-09 00:15:03 +00:00
parent 3f8b646289
commit 40ef82f225

View file

@ -84,7 +84,7 @@ class Handler(cgi.DebugHandler):
raise OGCException('Operation "%s" not supported.' % request, 'OperationNotSupported') raise OGCException('Operation "%s" not supported.' % request, 'OperationNotSupported')
response = requesthandler(ogcparams) response = requesthandler(ogcparams)
req.set_header('Content-Type', response.content_type) req.set_header('Content-Type', response.content_type)
req.set_header('Content-Length', str(len(response.content)) req.set_header('Content-Length', str(len(response.content)))
req.write(response.content) req.write(response.content)
def traceback(self, req): def traceback(self, req):
@ -100,7 +100,7 @@ class Handler(cgi.DebugHandler):
eh = ExceptionHandler111(self.debug) eh = ExceptionHandler111(self.debug)
response = eh.getresponse(reqparams) response = eh.getresponse(reqparams)
req.set_header('Content-Type', response.content_type) req.set_header('Content-Type', response.content_type)
req.set_header('Content-Length', str(len(response.content)) req.set_header('Content-Length', str(len(response.content)))
req.write(response.content) req.write(response.content)
def lowerparams(params): def lowerparams(params):