diff options
author | Marcel Hellkamp <marc@gsites.de> | 2012-08-23 23:46:51 +0200 |
---|---|---|
committer | Marcel Hellkamp <marc@gsites.de> | 2012-08-30 01:44:03 +0200 |
commit | 14020ae680d8309c331f961f52e7b64e35c66d1b (patch) | |
tree | fb0a722e0bf5d68510798f3e3f71a6c58f5fa49f /test/test_environ.py | |
parent | 9d2f04a3c0aca3ee4c5aa363e0a6a770e10f71a6 (diff) | |
download | bottle-14020ae680d8309c331f961f52e7b64e35c66d1b.tar.gz |
Some micro-optimisations.
Diffstat (limited to 'test/test_environ.py')
-rwxr-xr-x | test/test_environ.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_environ.py b/test/test_environ.py index 08d3592..5198b02 100755 --- a/test/test_environ.py +++ b/test/test_environ.py @@ -560,7 +560,7 @@ class TestResponse(unittest.TestCase): self.assertEqual(['foo'], headers) self.assertEqual('foo', response['x-test']) - response.set_header('X-Test', 'bar', True) + response.add_header('X-Test', 'bar') headers = [value for name, value in response.headerlist if name.title() == 'X-Test'] self.assertEqual(['foo', 'bar'], headers) |