fix handle_eror, find the cfg object.

This commit is contained in:
benoitc 2014-01-01 15:02:28 +01:00
parent ef329a8f73
commit 92c4c58208

View File

@ -187,7 +187,7 @@ class Worker(object):
environ = default_environ(req, client, self.cfg)
environ['REMOTE_ADDR'] = addr[0]
environ['REMOTE_PORT'] = str(addr[1])
resp = Response(req, client, cfg)
resp = Response(req, client, self.cfg)
resp.status = "%s %s" % (status_int, reason)
resp.response_length = len(mesg)
self.log.access(resp, req, environ, request_time)