Issue #291 resolved

test_session_filter broken with HTTP/1.1

Robert Brewer
created an issue



python cherrypy\test\ --1.1

[other tests run here...]

testSessionFilter (test_session_filter.SessionFilterTest) ... ERROR: expected body: '1'

actual body: '<?xml version="1.0" encoding="UTF-8"?>\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"\n "">\n<html>\n<head>\n <title>500 Internal error</title>\n \n <style type="text/css">\n .poweredBy {\n margin-top: 20px;\n bo rder-top: 2px solid black;\n }\n\n #traceback {\n color: red;\n }\n </style>\n\n</head>\n <body>\n <h2>500 Internal error</h2>\n <p>Server got itself in trouble</p>\n <pre id="traceback">Traceback (most recent call last):\n File "C:\Python23\Lib\site-pa ckages\cherrypy\", line 124, in wsgiApp\n for chunk in b:\n File "C:\Python23\Lib\site-packages\cherrypy\lib\filter\", line 176, in returnBodyAndSaveData\n\nAttributeError: EmptyClass instance has no attribute \'sessionStorage\'\n</ pre>\n <div class="poweredBy">\n <span>Powered by <a href="">CherryPy 2.1.0-beta</a></span>\n </div>\n </body>\n</html>\n' }}}

Comments (3)

  1. Log in to comment