ogcserver: Fix syntax errors accidentally introduced in r986 - patch from rcoup (closes #256)
This commit is contained in:
parent
3f8b646289
commit
40ef82f225
1 changed files with 2 additions and 2 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue