Browse Source

Disable "ie-friendly" error message padding in CherryPy

tags/nilmdb-0.1
Jim Paris 9 years ago
parent
commit
5970cd85cf
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      nilmdb/server.py

+ 5
- 0
nilmdb/server.py View File

@@ -390,6 +390,11 @@ class Server(object):
cherrypy.config.update({ 'request.show_tracebacks' : True })
self.force_traceback = force_traceback

# Patch CherryPy error handler to never pad out error messages.
# This isn't necessary, but then again, neither is padding the
# error messages.
cherrypy._cperror._ie_friendly_error_sizes = {}

cherrypy.tree.apps = {}
cherrypy.tree.mount(Root(self.db, self.version), "/")
cherrypy.tree.mount(Stream(self.db), "/stream")


Loading…
Cancel
Save