Issue #1059 resolved

py2/jsontools/json_out: debug message uses undefined global (prob. copy&paste mistake)

guest
created an issue

Patch

{{{ Index: py2/cherrypy/lib/jsontools.py
===================================================================
--- py2/cherrypy/lib/jsontools.py (revision 2782)
+++ py2/cherrypy/lib/jsontools.py (working copy)
@@ -82,6 +82,6 @@
request.handler = handler
if content_type is not None:
if debug:
- cherrypy.log('Setting Content-Type to %s' % ct, 'TOOLS.JSON_OUT')
+ cherrypy.log('Setting Content-Type to %s' % content_type, 'TOOLS.JSON_OUT')
cherrypy.serving.response.headers['Content-Type'] = content_type

}}}

Comments (2)

  1. Log in to comment