Source

CherryPy / test / test_response_headers.py

The branch 'cp3-wsgi-remix' does not exist.
Diff from to

test/test_response_headers.py

         other.exposed = True
         other._cp_config = {
             'tools.response_headers.on': True,
-            'tools.response_headers.force': False,
             'tools.response_headers.headers': [("Content-Language", "fr"),
                                                ('Content-Type', 'text/plain')],
             }
     def testResponseHeaders(self):
         self.getPage('/other')
         self.assertHeader("Content-Language", "fr")
-        # Since 'force' is False, the tool should only change headers
-        # that have not been set yet.
-        # Content-Type should have been set when the response object
-        # was created (default to text/html)
-        self.assertHeader('Content-Type', 'text/html')
+        self.assertHeader('Content-Type', 'text/plain')
 
 if __name__ == "__main__":
     setup_server()