Comment 1 for bug 920197

Revision history for this message
Martin Vidner (mvidner) wrote : Re: webob last stable version 1.1.1 response header bug

The bug shows up in functional tests, this particular case triggers it:

    nosetests test.functional.tests:TestFile.testHead

We have traced it down to this change in WebOb made on Jun 30 2011, shortly after 1.0.8 was released:
https://github.com/Pylons/webob/commit/2e23e221ff85eac81623ff7a07b1a630ae263ec9
"make sure WSGIHTTPException return the same headers for HEAD and GET requests"

It appears that a contributing factor is that Swift uses exceptions even for successful results, such as webob.exc.HTTPOk. The erroneous content-type and content-length correspond to the textual representation of the HTTPOk "exception".