Commits

Lee McFadden committed f3b34b2

Removed assert which caused 204 NO CONTENT returned with Content-Type header to raise an AssertionError

  • Participants
  • Parent commits 880ebd4

Comments (0)

Files changed (1)

File webtest/lint.py

         if name.lower() == 'content-type':
             if code not in NO_MESSAGE_TYPE:
                 return
-            assert 0, (("Content-Type header found in a %s response, "
-                        "which must not return content.") % code)
+            #assert 0, (("Content-Type header found in a %s response, "
+            #            "which must not return content.") % code)
     if code not in NO_MESSAGE_BODY:
         assert 0, "No Content-Type header found in headers (%s)" % headers