Commits

Robert Brewer  committed de2254a

Fix for #283.

  • Participants
  • Parent commits abee031

Comments (0)

Files changed (1)

File cherrypy/lib/cptools.py

 """
 
 from BaseHTTPServer import BaseHTTPRequestHandler
-responseCodes = BaseHTTPRequestHandler.responses
+responseCodes = BaseHTTPRequestHandler.responses.copy()
 
 import inspect
 import mimetools
     try:
         stat = os.stat(path)
     except OSError:
-        if getattr(cherrypy, "debug", None):
+        if cherrypy.config.get('server.environment') == 'development':
             cherrypy.log("    NOT FOUND file: %s" % path, "DEBUG")
         raise cherrypy.NotFound()